Version: 2017.1

InputField.shouldHideMobileInput

切换到手册
public bool shouldHideMobileInput ;

描述

应隐藏移动键盘输入。

using UnityEngine;
using System.Collections;
using UnityEngine.UI; // Required when Using UI elements.

public class Example : MonoBehaviour { public InputField mainInputField;

public void Start() { //This setting can be toggled in the inspector. mainInputField.shouldHideMobileInput = true; } }