StepTask
Extends: LoadTask
A LoadTask that calls a plain function once per step - see AssetLoader.addStep().
Constructor
new StepTask(
stepFunction: function,
context: dynamic,
oncePerFrame?: boolean,
): StepTaskParameters
stepFunction(function)context(dynamic)oncePerFrame(boolean, optional, default: false)
Instance Methods
step(budgetMs: integer): boolean
Parameters
budgetMs(integer)
Returns
boolean
getProgress(): float
Returns
float