Hi there,
I'm wondering if anybody has any advice where global scripts are concerned.
I know how to add a script to a scene by attaching it to an object, but what if I want the script to run across all scenes? Doesn't make sense to have to create an empty object for each scene just for this purpose.
A bit of a novice programmer, hopefully didn't miss the obvious answer...
Thanks!
Comments
Otherwise, you'll want to make use of Unity's DontDestroyOnLoad function, which prevents an object from being deleted after a scene change. As this is not related to AC, however, you should search Unity's forums and Answers pages for more info about how to use it.