InterfaceBrowser DX & Viewport@public
BrowserGamePreloadContext
Loading helpers supplied to a game's custom startup preparation.
ts
export interface BrowserGamePreloadContextProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
assets | readonly | FlxAssets | - |
signal | readonly | AbortSignal | - |
Methods
loadBundle()
ts
loadBundle<T = Record<string, unknown>>(name: string | string[], message?: string): Promise<T>Load an additional bundle and map its progress into the boot asset stage.
Parameters:
| Parameter | Type | Description |
|---|---|---|
name | string | string[] | - |
message | string | - |
Returns: Promise<T>
report()
ts
report(progress: number | null, message?: string): voidReport preparation-local progress, or null for an indeterminate operation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
progress | number | null | - |
message | string | - |
Returns: void