So as we keep on creating our game, the project grows bigger and bigger. Many more classes and gd script files are being created.
For example, some classes call the others such as a function in a gun class could instatiate a bullet object and when the bullet hits something, it could instantiate a special effect object.
Because of this, is there a tool to visualize the gd scripts? I would like to see which classes are related to which classes. The reason being I would like to see how the whole project comes together and also see which classes and files are not being used. This is so I could safely prune them out.
I’ve had the same problem when working on a game prototype like one year ago, and after doing a few research back then, I just decided to go with C# for large projects, as I believe code refactoring in gdscript still lacks tools and is a big weakness of the language.
The last solution I can think of is migrating to C# for large projects. I know it would be a radical decision, and you may not be comfortable with the language, but it is undeniable that using IDEs like VS/VSCode/Rider makes C# code refactoring easy (I mean the code structure may not be easy the refactor, but the tools are great).
Hopefully, someone using gdscript more than I do will give you better advices, but I hope that can help, if just a bit.