Quantcast
Channel: Answers for "How to call a script from an object that is DontDestroyOnLoad"
Viewing all articles
Browse latest Browse all 4

Answer by zeppike

$
0
0
How about attaching the script on an empty object in the second scene, than calling it as you would in the first. :) In the long run I would definitely try something like a true singleton pattern. http://unitypatterns.com/singletons/

Viewing all articles
Browse latest Browse all 4

Trending Articles



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