Unwanted scene instancing itself

Godot Version

Godot v4.2.1.stable

Question

I have a UI Control scene that is instancing itself and I'm not sure how so I have no idea how to get rid of it. I think I created this scene independently then instanced it by dragging it on to the main scene Node in the editor. I have no coded instances of this scene where I am instantiating it. This scene does have script attached to it. My game runs perfectly and all my code only affects the control scene that I want it to not the random duplicated scene that shows up behind everything. It literally wouldn't affect anything except I can see it when I full screen the game window. I can turn off visibility for everything on my main node but this scene is still there. How can I figure out where this scene is coming from?

I am editing my original post to include my solution which was to autoload the script for the scene not the scene itself in project settings-->Autoload

If you run your project, in the editor under Scene there should be a Remote option, like this:

remote

It shows the tree of everything is running, you can look through this to see where it’s coming from.

1 Like

Thank you for that information! I can see that it’s instantiated and there. I just don’t know WHY it’s instantiating (with my main scene, not as a child of it). I didn’t actually call it anywhere and my main scene in my project settings is correct. How do I delete this?

Is it stuck as an autoload by any chance?

1 Like

How would I check if it was? I don’t see anything in the inspector on that scene about autoload.

In Godot 4.3 : Project->Project Settings->Globals (tab on top)->Autoload (first and default focus tab).

That’s where singletons are set.

1 Like

Thank you! I had been having problems accessing variables and that was my solution was to autoload that scene with global variables enabled. Easy fix now, thanks again!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.