Hi!
I can't find a way to manage some of my resources without having to hardcode string paths somewhere. And I would prefer to avoid that at all costs because I am still making frequent changes to the game folder structure.
I also don't really want to use a singleton for that as those resources don't spread across the whole game.
What i identified as somehow decent solutions :
When declared with class_name, the resource scripts seems to be accesible anywhere. It could store an enum with an associated array of paths
A tool script scene could have an exported resource folder property to keep track of the current resources of one type. But it should be instancied in every scene that need those resources
The possibility to fill with all .tres files an exported array in a ResourceList scene could be a trick but that would become overwhelming for thousand of resources (like it would be with a singleton paths manager)
Maybe a global dictionary (of resource types) of dictionaries (of single resource name and path) could be another solution ?
In other words, i'm lost