Namespace: UnityEngine
Interface into the native iPhone and Android on-screen keyboards - it is not available on other platforms.
This interface allows to display different types of the keyboard: ASCII, Numbers, URL, Email, and others.
Because the appearance of the keyboard has the potential to obscure portions of your user interface, it is up to you to make sure that parts of your user interface are not obscured when the keyboard is being displayed.TouchScreenKeyboard.visible
and TouchScreenKeyboard.area
should be
used to determine if the keyboard is being shown (activated) and what
portion of the screen is using.area | Returns portion of the screen which is covered by the keyboard. |
hideInput | Will text input field above the keyboard be hidden when the keyboard is on screen? |
visible | Returns true whenever any keyboard is completely visible on the screen. |
active | Is the keyboard visible or sliding into the position on the screen? |
done | Specifies if input process was finished. (Read Only) |
text | Returns the text displayed by the input field of the keyboard. |
wasCanceled | Specifies if input process was canceled. (Read Only) |
Open | Opens the native keyboard provided by OS on the screen. |