Skip to content

Function: preload() ​

preload(def): Promise<void>

Preloads all atlases. This is useful to call at the beginning of the app, so that all textures are loaded before they are used.

Parameters ​

def ​

AtlasDefinition | Atlas

Returns ​

Promise<void>