# OnEnteringPlayModeAttribute()

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

## Definition

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

```csharp
public OnEnteringPlayModeAttribute()
```
