# Function: onLoadingLabel() (/jsdoc/pixi-vn/index/namespaces/Game/functions/onLoadingLabel)



\> **onLoadingLabel**(`value`): `void`

Defined in: [src/index.ts:400](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/index.ts#L400)

Is a function that will be executed in [onStepStart](/jsdoc/pixi-vn/index/namespaces/Game/functions/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](/jsdoc/pixi-vn/index/variables/narration).openedLabels.
It is useful for example to make sure all images used have been cached

Parameters [#parameters]

value [#value]

(`stepId`, `label`) => `void` | `Promise`\<`void`>

Returns [#returns]

`void`

Example [#example]

```typescript
Game.onLoadingLabel(async (stepId, label) => {
    await Assets.load('path/to/image1.png')
    await Assets.load('path/to/image2.png')
})
```
