Does anyone know how to add a resource as a 'dependency' of a node? That is when that node is loaded (as part of the scene loading) I also want to load some other resources.
Basically I have my splash screen which uses an interactive loader to load the main game scene. The interactive loader loads all the resources all the nodes in the scene need e.g. if I have a Sprite3d with a specific texture that texture is loaded. But if that sprite3d has a script that lets it switch between three other textures those textures won't be loaded until the first time I try to use them.
I want the interactive loader to recognize those extra textures as 'dependencies' of that sprite3d and load them directly.
I'm not sure if this is how preload works but I'm using C#/Mono so I can't use the preload keyword. (And I haven't found an equivalent.)