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?
↧