The ColorBlock for this selectable object.
Modifications will not be visible if transition is not ColorTint.
#pragma strict // Required when Using UI elements. public var button; function Start() { //Resets the colors in the buttons transitions. button.colors = ColorBlock.defaultColorBlock; }
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements.
public class ExampleClass : MonoBehaviour { public Button button;
void Start () { //Resets the colors in the buttons transitions. button.colors = ColorBlock.defaultColorBlock; } }