Version: 2017.1
public UI.ColorBlock colors ;

Descripción

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