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

DontDestroyOnLoad on disabled object doesn't work?

$
0
0
Hello, I have some object that I want them to never be destroy so even when I switch scenes, they are not destroy. But sometimes, I need to be disable. But when I change scene, they just destroy because the script attached to them telling them to DontDestroyOnLoad is also disable. Is there a better way to simply but them as a child in a parent and not disable the parent and put him or DontDestroyOnLoad? Or could I create a script on a GameMaster object that would tell other object to DontDestroyOnLoad even if they are disabled? What would be the most efficent way? Thanks a lot!

Viewing all articles
Browse latest Browse all 416

Trending Articles



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