Quantcast
Channel: Answers for "How to call a script from an object that is DontDestroyOnLoad"
Browsing latest articles
Browse All 4 View Live

Answer by zeppike

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....

View Article


Answer by RLin

You can use GameObject.Find<"objectname">().getComponent()

View Article

Browsing latest articles
Browse All 4 View Live


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