class_resourcepreloader - vkbsb/godot GitHub Wiki

ResourcePreloader

####Inherits: Node ####Category: Core

Brief Description

Resource Preloader Node.

Member Functions

Description

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.

Member Function Description

add_resource

Add a resource to the preloader. Set the text-id that will be used to identify it (retrieve it/erase it/etc).

remove_resource

  • void remove_resource ( String name )

Remove a resource from the preloader by text id.

rename_resource

Rename a resource inside the preloader, from a text-id to a new text-id.

has_resource

Return true if the preloader has a given resource.

get_resource

Return the resource given a text-id.

get_resource_list

Return the list of resources inside the preloader.