This namespace contains APIs which extends the resource-loader module for loading assets, data, and other resources dynamically.
Example
const loader = new PIXI.loaders.Loader();
loader.add('bunny', 'data/bunny.png')
.add('spaceship', 'assets/spritesheet.json');
loader.load((loader, resources) => {
// resources.bunny
// resources.spaceship
});
Classes
Members
-
PIXI.loaders.shared PIXI.loaders.Loader static
-
A premade instance of the loader that can be used to load resources.
Methods
-
Register a BitmapText font from loader resource.
Name Type Description resource
PIXI.loaders.Resource Loader resource.
textures
PIXI.Texture | Array.<PIXI.Texture> List of textures for each page.