Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Common ←ConditionalRenderer

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​

NameTypeSummary
materialMaterial
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.