Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Selectable.colors

マニュアルに切り替える
public UI.ColorBlock colors;

説明

この Selectable オブジェクトのための ColorBlock

遷移が 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; } }