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.highlightedColor

Switch to Manual
public var highlightedColor: Color;

Description

Highlighted Color.

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