UniRx
UniRx copied to clipboard
Application.quitting instead of MonoBehaviour.OnApplicationQuit
MonoBehaviour.OnApplicationQuit
is called before Application.wantsToQuit
which leads to undesired behavior. Application.wantsToQuit
can be used to
interrupt a quit process, so you can show the user a window ("do you really want to quit?").
If you cancel the quit, but MonoBehaviour.OnApplicationQuit
executes anyways, stuff breaks.
I am aware this changes current behavior and is dealing with inconsistencies in the Unity API
Can confirm. I still have the same issue.