Interface IMaterialInstanceOwner
Optional interface to use with objects which need to take ownership of MaterialInstance(s).
Namespace: Microsoft.MixedReality.Toolkit.Rendering
Assembly: cs.temp.dll.dll
Syntax
public interface IMaterialInstanceOwner
Methods
OnMaterialChanged(MaterialInstance)
Method which is invoked by a MaterialInstance when an external material change is detected. This normally occurs when materials are changed via Renderer.material, Renderer.materials, or via the editor.
Declaration
void OnMaterialChanged(MaterialInstance materialInstance)
Parameters
Type | Name | Description |
---|---|---|
MaterialInstance | materialInstance | The material instance which contains the updated materials. |