Version: 5.3
public UI.ColorBlock colors ;

설명

The ColorBlock for this selectable object.

Modifications will not be visible if transition is not ColorTint.

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; } }