Version: 2017.2
public string text ;

Descripción

The current value of the input field.

Tenga en cuenta que null es un valor inválido al InputField.text.

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..."; } }