#my gamemanager is a singelton but when i
1 messages · Page 1 of 1 (latest)
thread please
What creates the UICanvas - where does it get instantiated? I don't know if this is the case, but I'm wondering if the canvas gets deleted by something else that's managing it, because I would imagine that if the UICanvas lives within the GameManager, and the GameManager is not destroyd on reload, then anything that lives inside of it would also not get destroyed
If the target Object is a component or GameObject, Unity also preserves all of the Transform’s children.
https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
It's also possible that the UI thingy is getting destroyed because it's not set as a child of the GameManager
Oh, if I'm reading this right, then I think it's exactly the above
#archived-code-general message
then why is it not a child in the game object hierarchy in the screenshot?
making it a child doesnt work