Scene References Wrong Object Instances
-
In my Main scene, I have instances of a wall scene object. Here's what that looks like:
In the scene hierarchy we can see that the Wall Node references the Wall.tscn:
The problem occurs when I save and close, then reopen Godot.
The Wall instances turn into "wasp" instances. Here's what that looks like:
In the scene hierarchy, the Wall nodes are now referencing the wasp.glb object, which is incorrect:
Any ideas on why this is occurring? I've heard it could be a metadata issue, but I haven't found details on how to reset/delete metadata in Godot.
-
@Erik-Ring-Walters said in Scene References Wrong Object Instances:
I've heard it could be a metadata issue
By the sounds of it yes.
How to reset/delete metadata in Godot?
- First save then close your project. Make sure to make a backup.
- Open your project folder, and show hidden folders.
- Find
.godot
folder, and delete it and its content. - Reopen your project again.
That should delete all your project cache. Also what is your Godot version?
-
@altria Thanks for the reply. Deleting the contents of the .godot folder did not work. The wasp keeps showing up.
My Godot version is 4.1 stable. I just tried updating to 4.1.1 and repeated these steps, same issue.
-
This is interesting, can you open your file explorer and navigate to the file in question
Wall.tcsn
open it with Notepad. And copy paste the content here? If the content is too big, you can use pastebin. -
Hi @altria I ended up reloading the previous commit from before I added the wasp to the project, then re-imported the wasp. Seems to be working okay now. I thankfully didn't lose much progress. I suspect there was some sort of corruption during the initial import. Thank you for taking a look.
-