new PIXI.Spritesheet(baseTexture, data, resolutionFilename)
Name | Type | Default | Description |
---|---|---|---|
baseTexture |
PIXI.BaseTexture |
Reference to the source BaseTexture object. |
|
data |
Object |
Spritesheet image data. |
|
resolutionFilename |
string | null |
optional
The filename to consider when determining |
Members
-
staticPIXI.Spritesheet.BATCH_SIZEnumber
-
The maximum number of Textures to build per process.
- Default Value:
- 1000
Methods
-
destroy(destroyBase)
-
Destroy Spritesheet and don't use after this.
Name Type Default Description destroyBase
boolean false optional Whether to destroy the base texture as well
-
parse(callback)
-
Parser spritesheet from loaded data. This is done asynchronously
to prevent creating too many Texture within a single process.Name Type Description callback
function Callback when complete returns
a map of the Textures for this spritesheet.