Class: SpritesheetLoader

PIXI.SpritesheetLoader

Loader middleware for loading texture atlases that have been created with TexturePacker or similar JSON-based spritesheet. This automatically generates Texture resources.

new PIXI.SpritesheetLoader ()

Extends

Methods

PIXI.SpritesheetLoader.getResourcePath (resource, baseUrl) static

Get the spritesheets root path

Name Type Description
resource PIXI.LoaderResource

Resource to check path

baseUrl string

Base root url

PIXI.SpritesheetLoader.use (resource, next) static

Called after a resource is loaded.

Name Type Description
resource PIXI.LoaderResource
next function
See: