InputField.ActivateInputField

Switch to Manual
public void ActivateInputField ();

Description

用于激活 InputField 以开始处理 Events 的函数。

仅在停用时才会激活。


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(); } }