# runInEditMode

> Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).

## Definition

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

```csharp
public bool runInEditMode { get; set; }
```

### Remarks

By default, script components are only executed in play mode. By setting this property, the MonoBehaviour will have its callback functions executed while the Editor is not in playmode.

See Also: [ExecuteInEditMode](/engine/6000.5/script-reference/unityengine/executeineditmode.md).
