-
Notifications
You must be signed in to change notification settings - Fork 0
class_resourcepreloader
reduz edited this page Feb 23, 2014
·
9 revisions
Inherits: Node\n\n
Resource Preloader Node.
- void ** add_resource ** ( String name, Object resource )
- void ** remove_resource ** ( String name )
- void ** rename_resource ** ( String name, String newname )
- bool ** has_resource ** ( String name ) const
- Object ** get_resource ** ( String name ) const
- StringArray ** get_resource_list ** ( ) const
Resource Preloader Node. This node is used to preload sub-resources inside a scene, so when the scene is loaded all the resourcs are ready to use and be retrieved from here.
- void ** add_resource ** ( String name, Object resource ) \ Add a resource to the preloader. Set the text-id that will be used to identify it (retrieve it/erase it/etc).
- void ** remove_resource ** ( String name ) \ Remove a resource from the preloader by text id.
- void ** rename_resource ** ( String name, String newname ) \ Rename a resource inside the preloader, from a text-id to a new text-id.
- bool ** has_resource ** ( String name ) const \ Return true if the preloader has a given resource.
- Object ** get_resource ** ( String name ) const \ Return the resource given a text-id.
- StringArray ** get_resource_list ** ( ) const \ Return the list of resources inside the preloader.