この Selectable オブジェクトのための ColorBlock。
遷移が ColorTint でなければ変更は表示されません。
#pragma strict
// Required when Using UI elements.
public var button;
function Start() {
//Resets the colors in the buttons transitions.
button.colors = ColorBlock.defaultColorBlock;
}
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; } }