UniRx icon indicating copy to clipboard operation
UniRx copied to clipboard

Application.quitting instead of MonoBehaviour.OnApplicationQuit

Open Cluster7ck opened this issue 4 years ago • 1 comments

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

Cluster7ck avatar Jun 24 '20 09:06 Cluster7ck

Can confirm. I still have the same issue.

hneumann avatar Feb 11 '21 16:02 hneumann