# UserAction

> Use this setting to allow a method to show dialog boxes to the user, and to allow it to record to the undo history.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
UserAction = 1
```

### Remarks

You can only use this setting with methods that accept an [InteractionMode](/engine/6000.7/script-reference/unityeditor/interactionmode.md) parameter.
