mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    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.

    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.

    In This Article
    • Methods
      • OnMaterialChanged(MaterialInstance)
      • OnMaterialChanged(MaterialInstance)
    Back to top Generated by DocFX