Unity MonoBehaviour の起動から終了までの流れ
忘れそうなので自分用のメモ。
参考
起動
Awake() → OnEnable() → OnApplicationPause(false) → OnApplicationFocus(true) → Start()
終了
OnApplicationQuit() → OnDisable() → OnDestroy()
関連しているのは以下
- Awake()
- OnEnable()
- OnApplicationPause(bool)
- Start()
- OnDisable()
- OnApplicationFocus(bool)
- OnDestroy()
- OnApplicationQuit()