2022-03-15 13:29:32 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-06-13 16:51:37 +02:00
<class name= "ResourcePreloader" inherits= "Node" version= "3.12" >
2022-03-15 13:29:32 +01:00
<brief_description >
Resource Preloader Node.
</brief_description>
<description >
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.
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_resource" >
<return type= "void" />
2022-03-24 01:22:45 +01:00
<argument index= "0" name= "name" type= "StringName" />
2022-03-15 13:29:32 +01:00
<argument index= "1" name= "resource" type= "Resource" />
<description >
</description>
</method>
<method name= "get_resource" qualifiers= "const" >
<return type= "Resource" />
2022-03-24 01:22:45 +01:00
<argument index= "0" name= "name" type= "StringName" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
<method name= "get_resource_list" qualifiers= "const" >
<return type= "PoolStringArray" />
<description >
Returns the list of resources inside the preloader.
</description>
</method>
<method name= "has_resource" qualifiers= "const" >
<return type= "bool" />
2022-03-24 01:22:45 +01:00
<argument index= "0" name= "name" type= "StringName" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
<method name= "remove_resource" >
<return type= "void" />
2022-03-24 01:22:45 +01:00
<argument index= "0" name= "name" type= "StringName" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
<method name= "rename_resource" >
<return type= "void" />
2022-03-24 01:22:45 +01:00
<argument index= "0" name= "name" type= "StringName" />
<argument index= "1" name= "newname" type= "StringName" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
</methods>
<constants >
</constants>
</class>