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