Resource Preloader Node.
This node is used to preload sub-resources inside a scene, so when the scene is loaded, all the resources are ready to use and can be retrieved from the preloader.
GDScript has a simplified [method @GDScript.preload] built-in method which can be used in most situations, leaving the use of [ResourcePreloader] for more advanced scenarios.
Adds a resource to the preloader with the given [code]name[/code]. If a resource with the given [code]name[/code] already exists, the new resource will be renamed to "[code]name[/code] N" where N is an incrementing number starting from 2.
Returns the resource associated to [code]name[/code].
Returns the list of resources inside the preloader.
Returns [code]true[/code] if the preloader contains a resource associated to [code]name[/code].
Removes the resource associated to [code]name[/code] from the preloader.
Renames a resource inside the preloader from [code]name[/code] to [code]newname[/code].