Is there an event for when a game is being shut down?

I want to listen for when the user is returning to the main menu or loading a new game from within a game. There’s an expensive procedure that happens when a particular component is destroyed that doesn’t need to happen if the whole game is shutting down.

1 Like

radiant:shut_down event seems to be triggered on loading of a save and going back to menu.

Then its followed up with radiant:init

4 Likes

Thanks! No mark-as-solved for this discourse category or I would.

1 Like