Is it possible to have the same gameobject in all scenes

Hey Guys,

I’m not sure if I’m trying to have a ‘menu’ that can be accessed from all scenes,

When I make a prefab of my menu (which is connected to inventory and a bunch of other stuff) and then put the prefabs in my new scene, I have to re-reference everything. Is that normal? or am I not doing it properly? Like is there a way to have a gameobject be in all the scenes?

Thanks a lot!

Yes, You set the GameObject to DontDestroyOnLoad and then it will not be destroyed when you load a new scene.

Generally what you want to do is load the object in a starting scene that will always be loaded first… and then not include it in any subsequent scenes so you do not end up with duplicates.