Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Need I put OnApplicationQuit into a DontDestroyOnLoad object?

$
0
0
I have some actions need to perform when the application is closed, like clearing some cached player preferences. No matter which scenes the user is, it should be executing. Should I put it in a DontDestroyOnLoad object? or OnApplicationQuit is an event register that those code would run well even across the scenes? Thank you.

Viewing all articles
Browse latest Browse all 416

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>