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..."; } }
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements.
public class Example : MonoBehaviour { public InputField mainInputField; public void Start() { mainInputField.text = "Enter Text Here..."; } }