Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


inPlaceEditingBehavior

Controls the in-place editing behavior for text input fields.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static TouchScreenKeyboard.InPlaceEditingBehavior inPlaceEditingBehavior { get; set; }

Remarks

In-place editing allows users to select or modify text in an input field without displaying the on-screen keyboard. Use this property to control on-screen keyboard visibility when editing text in input fields. For example, set this property to
InPlaceEditingBehavior.AlwaysDisallowed
to always display the on-screen keyboard.
Android: Unity automatically enables in-place editing and hides the on-screen keyboard if it detects any physical keyboard.
The following code example demonstrates how to disable in-place editing and display the on-screen keyboard.

Examples

using UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { TouchScreenKeyboard.inPlaceEditingBehavior = TouchScreenKeyboard.InPlaceEditingBehavior.AlwaysDisallowed; }}