Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Mode

Switch to Manual

Description

Navigation mode. Used by Selectable.

#pragma strict
// Required when Using UI elements.
public var button;
function Start() {
	//Set the navigation to the mode "Vertical".
	if (button.navigation.mode == Navigation.Mode.Vertical) {
		Debug.Log("The button's navigation mode is Vertical");
	}
}

Variables

NoneNo navigation.
HorizontalHorizontal Navigation.
VerticalVertical navigation.
AutomaticAutomatic navigation.
ExplicitExplicit navigaion.