日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class ColorChanger

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

    Inheritance
    Object
    ColorChanger
    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()
    Back to top Generated by DocFX