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, ): StepTask

Parameters

  • stepFunction (function)
  • context (dynamic)
  • oncePerFrame (boolean, optional, default: false)

Instance Methods

step(budgetMs: integer): boolean

Parameters

  • budgetMs (integer)

Returns

  • boolean

getProgress(): float

Returns

  • float