Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TouchScreenKeyboard.InPlaceEditingBehavior

Options to control in-place editing behavior for text input fields.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum TouchScreenKeyboard.InPlaceEditingBehavior

Remarks

Set the value of this enum to TouchScreenKeyboard.inPlaceEditingBehavior property to control on-screen keyboard visibility when users modify text in the input fields.
The following code example demonstrates how to set the in-place editing behavior to automatically adjust based on connected peripherals.

Examples

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

Fields

Value

Description

AlwaysAllowedAlways allow in-place editing without displaying the on-screen keyboard.
AlwaysDisallowedNever allow in-place editing and always display the on-screen keyboard.
AutoUnity automatically decides whether to enable the in-place editing behavior based on the connected peripherals.