# OnEnteringPlayModeAttribute()

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

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** Unity.Scripting

```csharp
public OnEnteringPlayModeAttribute()
```
