Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Interface into the native iPhone, Android, Windows Phone and Windows Store Apps 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.area should be
used to determine if the keyboard is being shown (activated) and what
portion of the screen is using.
Windows Store Apps: On Universal Windows 10 Apps the touch screen keyboard is only supported in XAML based applications with touch input support.
|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?|
|isSupported||Is touch screen keyboard supported.|
|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?|
|canGetSelection||Specifies whether the TouchScreenKeyboard supports the selection property. (Read Only)|
|canSetSelection||Specifies whether the TouchScreenKeyboard supports the selection property. (Read Only)|
|characterLimit||How many characters the keyboard input field is limited to. 0 = infinite.|
|selection||Gets or sets the character range of the selected text within the string currently being edited.|
|status||Returns the status of the on-screen keyboard. (Read Only)|
|targetDisplay||Specified on which display the software keyboard will appear.|
|text||Returns the text displayed by the input field of the keyboard.|
|type||Returns the TouchScreenKeyboardType of the keyboard.|
|Open||Opens the native keyboard provided by OS on the screen.|
Did you find this page useful? Please give it a rating: