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

Use this attribute to get a callback when the runtime is starting up and loading the first scene.