[UNITY] `Application.WantsToQuit` triggers immediate shutdown.

I have a Inhouse GameFoundation which handles Application.WantsToQuit event, which cancels the quit cycle and then shows a `Are you sure you want to quit?` message.


However - Fusion shuts down Immediately regardless of cancellation state any time Application.WantsToQuit is fired.

Is there some way I can disable this functionality in the Fusion SDK?

I only want fusion execute a shutdown sequence when the application is actually going to shut down (when the WantsToQuit handler returns true).

The issue here is if Alt+F4 is cancelled the game still needs to continue playing and a connection should remain active.

Comments

  • You posted this in Discord as well. When we looked into this and you got a fix, please update this thread.