Version: 5.5
public Color disabledColor ;

説明

無効時の色

using UnityEngine;
using System.Collections;
using UnityEngine.UI; // Required when Using UI elements.

public class ExampleClass : MonoBehaviour { public Button button; public Color newColor;

void Start() { //Changes the button's Disabled color to the new color. ColorBlock cb = button.colors; cb.disabledColor = newColor; button.colors = cb; } }