mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ColorChanger

    Change the color of the material on a renderer. Useful for visualizing button presses.

    Inheritance
    Object
    ColorChanger
    Implements
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
    Assembly: cs.temp.dll.dll
    Syntax
    public class ColorChanger : MonoBehaviour, MonoBehaviour

    Fields

    cur

    Declaration
    public int cur
    Field Value
    Type Description
    Int32

    cur

    Declaration
    public int cur
    Field Value
    Type Description
    Int32

    mats

    Declaration
    public Material[] mats
    Field Value
    Type Description
    Material[]

    mats

    Declaration
    public Material[] mats
    Field Value
    Type Description
    Material[]

    rend

    Declaration
    public MeshRenderer rend
    Field Value
    Type Description
    MeshRenderer

    rend

    Declaration
    public MeshRenderer rend
    Field Value
    Type Description
    MeshRenderer

    Methods

    Increment()

    Increments to the next material in the input list of materials and applies it to the renderer.

    Declaration
    public void Increment()

    Increment()

    Increments to the next material in the input list of materials and applies it to the renderer.

    Declaration
    public void Increment()

    RandomColor()

    Sets a random color on the renderer's material.

    Declaration
    public void RandomColor()

    RandomColor()

    Sets a random color on the renderer's material.

    Declaration
    public void RandomColor()

    Implements

    MonoBehaviour
    In This Article
    • Fields
      • cur
      • cur
      • mats
      • mats
      • rend
      • rend
    • Methods
      • Increment()
      • Increment()
      • RandomColor()
      • RandomColor()
    • Implements
    Back to top Generated by DocFX