Version: 2020.2

描述

目标平台的默认键盘布局。

An iOS example is shown below:

using UnityEngine;
using UnityEngine.iOS;

public class ExampleClass : MonoBehaviour { private TouchScreenKeyboard keyboard;

protected void OnGUI() { GUI.skin.button.fontSize = 36; if (GUILayout.Button("Keyboard")) { keyboard = TouchScreenKeyboard.Open("Hello", TouchScreenKeyboardType.Default); } } }