Version: 2018.2
public UI.ColorBlock colors ;

Description

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