Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

InPlaceEditingBehavior

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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; } }

Properties

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