ドキュメント

Unity Engine

Unity Engine

hideInput

Will text input field above the keyboard be hidden when the keyboard is on screen?
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool hideInput { get; set; }

Remarks

This property is applicable for single line text fields that have assigned keyboard with alphanumeric keys. When hideInputs is set to true, the only type of keyboard that can be opened is TouchScreenKeyboardType.Default. This type of keyboard will be opened even if other types are specified to be opened.
Android: There is no reliable way of hiding input field. Unity provides this property which, when you enable it, renders the input field outside of the screen. This gives the illusion of a hidden input field.