# OnEnteringEditModeAttribute()

> Marks the decorated static method to be invoked when entering Edit mode.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Scripting.LifecycleManagement](/engine/6000.6/script-reference/unityeditor/scripting/lifecyclemanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public OnEnteringEditModeAttribute()
```
