Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TouchScreenKeyboardType.Default

Description

The default keyboard layout of the target platform.

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

Did you find this page useful? Please give it a rating: