Options to control in-place editing behavior for text input fields.
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.
using UnityEngine;
public class ExampleClass : MonoBehaviour { void Start() { TouchScreenKeyboard.inPlaceEditingBehavior = TouchScreenKeyboard.InPlaceEditingBehavior.Auto; } }
| Property | Description |
|---|---|
| Auto | Unity automatically decides whether to enable the in-place editing behavior based on the connected peripherals. |
| AlwaysAllowed | Always allow in-place editing without displaying the on-screen keyboard. |
| AlwaysDisallowed | Never allow in-place editing and always display the on-screen keyboard. |