Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


closeKeyboardOnOutsideTap

Enable legacy on-screen keyboard hiding on Android.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap is obsolete. Use TouchScreenKeyboard.Android.consumesOutsideTouches instead
public static bool closeKeyboardOnOutsideTap { get; set; }

Remarks

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
false
.