# OverrideMaterial Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Common.ConditionalRenderer.OverrideMaterial/ OverrideMaterial --- ## Declaration protected void OverrideMaterial(Material material) #### Summary Overrides the current material used in rendering with a new material. If the component is using the default material, it will be destroyed. This method also resets the command buffer initialization state. ### Parameters | Name | Type | Summary | | --- | --- | --- | | material | Material | The new material to be used for rendering. If this argument is null, the renderer will reconstruct the internal material defined by the ShaderName property. | ---