Interactive Resource loader.
|Resource||get_resource ( )|
|int||get_stage ( ) const|
|int||get_stage_count ( ) const|
|Error||poll ( )|
|Error||wait ( )|
Interactive Resource loader. This object is returned by ResourceLoader when performing an interactive load. It allows to load with high granularity, so this is mainly useful for displaying loading bars/percentages.
Returns the loaded resource if the load operation completed successfully,
Returns the load stage. The total amount of stages can be queried with get_stage_count.
Returns the total amount of stages (calls to poll) needed to completely load this resource.
Polls the loading operation, i.e. loads a data chunk up to the next stage.
Returns another Error code if the poll has failed.
Polls the loading operation successively until the resource is completely loaded or a poll fails.
Returns another Error code if a poll has failed, aborting the operation.
© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.