Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

Issue with DontDestroyOnLoad

$
0
0
Hello there, I have an issue with DontDestroyOnLoad. I have in my first scene a GameObject called settingsContainer (obviously it holds some settings for the player). On second scene I have a script something like that: void Awake() { instance = this; DontDestroyOnLoad(GameObject.Find("settingsContainer")); } but later I can't access the game object because it doesn't exist... I can't see it either in my Hierarchy.... I'm sure I don't destroy it anywhere.. any idea what can be going wrong? something i should check about it to fix that?

Viewing all articles
Browse latest Browse all 827

Trending Articles



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