assetManager
The assetManager class is simple: it is an abstraction over pixi.js's asset loader and provides preloaded models.
AssetManager public
Bounded to game as game.assetManager. Alias: game.assetManagerType
Methods
load
ts
function load(files: Array<{ name: string, url: string }>, callback?: Function): voidLoads all files from an array by names. Is called once every time the game is loaded with every model names to preload assets.
INFO
Parameter files has the data structure as shown in Data Interfaces. You can see the current parameter here.
loadModel
ts
function loadModel(modelName: string, args?: object): voidLoads a model from preloaded assets.