I woke up this morning and I discovered that Godot deleted my First Person Camera Script and my Grass Shader script, these scripts took me a while to do and I am really mad that they got deleted for no reason. Smh.

Are you certain they got deleted? Might it be you failed to properly save them before closing godot? If not and you just deleted the scene that contained them then they should/could still be in your project file hierarchy just not connected to any nodes in the project.

@Megalomaniak said: Are you certain they got deleted? Might it be you failed to properly save them before closing godot? If not and you just deleted the scene that contained them then they should/could still be in your project file hierarchy just not connected to any nodes in the project.

I am 100% Certain they got deleted, I went back to my other projects and they were completely fine (test projects) , also, if you want more clarification, I followed a FPS tutorial (just for the camera movement) and copied their script, but it was not working so I had to change things up a bit so it can work, this also happened with a Grass Shader tutorial, and I don't remember what I did sooo yeah. Here are the tutorials.

https://www.reddit.com/r/godot/comments/hf7r21/botw_style_grass_tutorial/

https://kidscancode.org/godot_recipes/g101/3d/101_3d_07/

@bruh -- I have had changes seemly-disappear on me when I unintentionally caused a scene to have its own copy of some resource. I didn't notice that my changes in the editor were no longer changing my separate script etc file, then when I clear the set-script and go to re-attach: poof, nothing there.

The total way to prevent this problem or recover in the face of editor bugs is to use a version control system for even tiny/experimental projects. Never lose changes again, and always be able to back to any working version! Check out the Godot official Version Control Systems documentation, which links to the official plugin for git, the most widely-used and open source version control system.

I've had an entire node disappear from my tree, no idea why. I am pretty sure I didn't do it. But, I use source control, so I just had to checkout my repository to get it back.

I recommend bitbucket but most people seem pretty happy with github.

2 years later