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.

Navigation.selectOnDown

Switch to Manual
public var selectOnDown: UI.Selectable;

Description

Selectable to select on down.

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