# InitializeOnLoad

Allow an editor class method to be initialized when Unity loads without action from the user.&#x20;

### Implementation

```csharp
[InitializeOnLoadMethod]
private static void InitializeOnLoad();
```

### Reference

[InitializeOnLoadMethod](https://docs.unity3d.com/ScriptReference/InitializeOnLoadMethodAttribute.html)
