Function to activate the InputField to begin processing Events.
Will only activate if deactivated.
#pragma strict public class Example { public var mainInputField; // Activate the main input field when the scene starts. function Start() { mainInputField.ActivateInputField(); } }
using UnityEngine; using System.Collections; using UnityEngine.UI;
public class Example : MonoBehaviour {
public InputField mainInputField;
// Activate the main input field when the scene starts. void Start () { mainInputField.ActivateInputField(); } }