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