Example
loader.add('myatlas', 'path/to/myatlas.json');
loader.load(() => {
loader.resources.myatlas; // atlas JSON resource
loader.resources.myatlas_image; // atlas Image resource
});
Implements
Methods
Get the spritesheets root path
Name | Type | Description |
---|---|---|
resource |
PIXI.LoaderResource |
Resource to check path |
baseUrl |
string |
Base root url |
Returns:
Type | Description |
---|---|
string |
Called after a resource is loaded.
Name | Type | Description |
---|---|---|
resource |
PIXI.LoaderResource | |
next |
Function |