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

Switch to Manual
public function Select(): void;

Description

Selects this Selectable.

#pragma strict
// required when using UI elements in scripts
// Required when using Event data.
public var myInputField;
//Do this OnClick.
public function SaveGame() {
	//Makes the Input Field the selected UI Element.
	myInputField.Select();
}