文档

Unity Engine

Unity Engine

Default

The default keyboard layout of the target platform.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Default = 0

Remarks

An iOS example is shown below:

Examples

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