onLoading(action: (progress: number)=>void): void

Register an event that runs every frame when assets are initially loading. Can be used to draw a custom loading screen.

paramaction- The function to run when the event is triggered.

returnsThe event controller.

sincev3000.0