Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

ColorBlock.normalColor

Switch to Manual
public var normalColor: Color;

Description

Normal Color.

#pragma strict
// Required when Using UI elements.
public var button;
public var newColor;
function Start() {
	//Changes the button's Normal color to the new color.
	button.colors.normalColor = newColor;
}