MonoBehaviour-OnApplicationQuit() - Unity スクリプトリファレンス

Sent to all GameObjects before the application quits.