Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Interactive Resource loader.
Interactive Resource loader. This object is returned by ResourceLoader when performing an interactive load. It allows loading resources with high granularity, which makes it mainly useful for displaying loading bars or percentages.
get_resource ( )
get_stage ( ) const
get_stage_count ( ) const
poll ( )
wait ( )
Descripciones de Métodos¶
Resource get_resource ( )
Returns the loaded resource if the load operation completed successfully,
int get_stage ( ) const
Returns the load stage. The total amount of stages can be queried with get_stage_count.
int get_stage_count ( ) const
Returns the total amount of stages (calls to poll) needed to completely load this resource.
Error poll ( )
Polls the loading operation, i.e. loads a data chunk up to the next stage.
Returns another Error code if the poll has failed.
Error wait ( )
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.