Function: onLoadingLabel()
> onLoadingLabel(value): void
Defined in: src/index.ts:400
Is a function that will be executed in Game.onStepStart if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the narrationUtils.narration.openedLabels. It is useful for example to make sure all images used have been cached
Parameters
value
(stepId, label) => void | Promise<void>
Returns
void
Example
Game.onLoadingLabel(async (stepId, label) => {
await Assets.load('path/to/image1.png')
await Assets.load('path/to/image2.png')
})