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.

InputField.text

Switch to Manual
public var text: string;

Description

The current value of the input field.

#pragma strict
// Required when Using UI elements.
public class Example {
	public var mainInputField;
	public function Start() {
		mainInputField.text = "Enter Text Here...";
	}
}