# OnMaterialAttach Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Common.RenderComponent.OnMaterialAttach/ OnMaterialAttach Invoked when the render component is initialized with a new material. --- ## Declaration protected virtual void OnMaterialAttach(Material mat) #### Summary Invoked when the render component is initialized with a new material. ### Parameters | Name | Type | Summary | | --- | --- | --- | | mat | Material | - | ---