Version: 2021.3
LanguageEnglish
  • C#
Method group is Obsolete

TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap

Suggest a change

Success!

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

Submission failed

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

Cancel

Obsolete TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap is obsolete. Use TouchScreenKeyboard.Android.consumesOutsideTouches instead.
Upgrade to consumesOutsideTouches
public static bool closeKeyboardOnOutsideTap;

Description

Enable legacy on-screen keyboard hiding on Android.

When true, Unity closes the on-screen keyboard if you tap outside the visible keyboard area. When false, Unity keeps the on-screen keyboard open if you tap outside the visible keyboard area. This means that you can interact with Unity while the keyboard remains on-screen.

The default value is true.