Version: 2017.3

ColorBlock.highlightedColor

매뉴얼로 전환
public Color highlightedColor ;

설명

Highlighted Color.

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 Highlighted color to the new color. ColorBlock cb = button.colors; cb.highlightedColor = newColor; button.colors = cb; } }