Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Selectable.colors

Switch to Manual
public var colors: UI.ColorBlock;

Description

The ColorBlock for this selectable object.

Modifications will not be visible if transition is not ColorTint.

#pragma strict
// Required when Using UI elements.
public var button;
function Start() {
	//Resets the colors in the buttons transitions.
	button.colors = ColorBlock.defaultColorBlock;
}