ColorChangerUnityUI Class

Definition

Change the color of the material on a UnityUI Graphic (ex. Image). Useful for visualizing button presses.

public ref class ColorChangerUnityUI : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ColorChangerUnityUI")]
public class ColorChangerUnityUI : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ColorChangerUnityUI")>]
type ColorChangerUnityUI = class
    inherit MonoBehaviour
Public Class ColorChangerUnityUI
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
ColorChangerUnityUI
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

ColorChangerUnityUI()

Methods

RandomColor()

Sets a random color on the renderer's material.

Applies to