# OnInitializeMaterial Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Common.ConditionalRenderer.OnInitializeMaterial/ OnInitializeMaterial --- ## Declaration protected virtual void OnInitializeMaterial(Material mat) #### Summary Invoked when the material state needs to be reset or initialized with default values. This usually occurs when the material is first created. ### Parameters | Name | Type | Summary | | --- | --- | --- | | mat | Material | - | ---