Quantcast
Channel: Answers for "How to call a script from an object that is DontDestroyOnLoad"
Browsing all 4 articles
Browse latest 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().getComponent()

View Article

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().getComponent()

View Article
Browsing all 4 articles
Browse latest View live




Latest Images