The default keyboard layout of the target platform.
An iPhone example is shown below:
#pragma strict private var keyboard: TouchScreenKeyboard; protected function OnGUI() { GUI.skin.button.fontSize = 36; if (GUILayout.Button("Keyboard")) { keyboard = TouchScreenKeyboard.Open("Hello", TouchScreenKeyboardType.Default); } }
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); } } }
Did you find this page useful? Please give it a rating: