Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Navigation.selectOnUp

Switch to Manual
public var selectOnUp: UI.Selectable;

Description

Selectable to select on up.

#pragma strict
// Required when Using UI elements.
public class SelectedCheck {
	public var btnSave;
	public var btnLoad;
	public function Start() {
		//makes the Save button selectable if the up arrow key is pressed
		btnLoad.navigation.selectOnUp = btnSave;
	}
}