Class ColorChanger
Change the color of the material on a renderer. Useful for visualizing button presses.
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