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

Switch to Manual
public var navigation: UI.Navigation;

Description

The Navigation setting for this selectable object.

#pragma strict
// Required when Using UI elements.
public var button;
function Start() {
	//Set the navigation to the default value. ("Automatic" is the default value).
	button.navigation = Navigation.defaultNavigation;
}