InitializeOnLoadAttribute - Unity スクリプトリファレンス

Allows you to initialize an Editor class when Unity loads, and when your scripts are recompiled.