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



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

Defined in: [src/index.ts:396](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/index.ts#L396)

Is a function that will be executed in [onStepStart](/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](/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]

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