4.4
Hi! I have so many unused/not needed stuff in my folders in godot, for example: scripts, scenes, spritesheets, and i don’t know if i should delete them or just keep them? i don’t know if deleting some of the scripts or scenes will cause some errors, so that’s why i’m scared to delete them. Maybe i’m just overreacting…
Thanks for reading.
control
+ shift
+ f
lets you search through all of your scripts for keywords. If you have a script you suspect is unused and that script has a class name, you can try searching for that class name to see if it’s used anywhere.
This is also a good reason to use some sort of version control system like git. If you do some spring cleaning and accidentally throw out something vital, reverting your mistake will be as simple as running a few commands in a terminal.
2 Likes
Any folder that contains the file .gdignore will not be imported by Godot.
I usually create a dump folder with that file in it and move anything I am done with into it. The file can always get recalled as necessary.
1 Like
Ohhhh, so if i make 1 folder called trash and put all the unused files in that folder, then name one file: .gdignore then it will remove all the files that are in the trash folder? Including the .gdignore file?
Yes. But not remove, just hide them from the Godot file inspector.
The files are still there but they are not used by Godot.
1 Like