Class ColorChanger
Change the color of the material on a renderer. Useful for visualizing button presses.
Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
Assembly: cs.temp.dll.dll
Syntax
public class ColorChanger : MonoBehaviour
Fields
cur
Declaration
public int cur
Field Value
Type | Description |
---|---|
Int32 |
mats
Declaration
public Material[] mats
Field Value
Type | Description |
---|---|
Material[] |
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()
RandomColor()
Sets a random color on the renderer's material.
Declaration
public void RandomColor()