# TouchScreenKeyboard.InPlaceEditingBehavior

> Options to control in-place editing behavior for text input fields.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum TouchScreenKeyboard.InPlaceEditingBehavior
```

## Remarks

Set the value of this enum to [TouchScreenKeyboard.inPlaceEditingBehavior](/engine/6000.6/script-reference/unityengine/touchscreenkeyboard/inplaceeditingbehavior-1.md) 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

```csharp
using UnityEngine;

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

## Fields

| Value                                                                                                                          | Description                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
| [AlwaysAllowed](/engine/6000.6/script-reference/unityengine/touchscreenkeyboard/inplaceeditingbehavior/alwaysallowed.md)       | Always allow in-place editing without displaying the on-screen keyboard.                                        |
| [AlwaysDisallowed](/engine/6000.6/script-reference/unityengine/touchscreenkeyboard/inplaceeditingbehavior/alwaysdisallowed.md) | Never allow in-place editing and always display the on-screen keyboard.                                         |
| [Auto](/engine/6000.6/script-reference/unityengine/touchscreenkeyboard/inplaceeditingbehavior/auto.md)                         | Unity automatically decides whether to enable the in-place editing behavior based on the connected peripherals. |
