What is this auto-generated tscn file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By trey

I’m trying to figure out as much as I can about how things work, and I was inspecting the project structure of the 3D Kinematic Character Demo CS template. In it, there is a file “Obstacles/purplecube.tscn”. I couldn’t find a reference to it anywhere, even searching all files in the project for the text “purplecube”. I also searched for “purple” and “cube” to see if it was concatenating the words, but while a few results came up, nothing seemed to be doing that from what I could tell.

So I deleted the file and ran the project to see what happens. To my surprise, the file regenerated! How does this happen? Why does this happen?

Thank you!

P.S. I also checked the original project template that the CS version was based on, 2D Kinematic Character Demo, and it also does this, although the file is called “purple_cube.tscn”. I still couldn’t find a reference to this file in that project either.