Name | Type | Description |
---|---|---|
texture |
BindableTexture |
Reference to the source BaseTexture object. |
data |
object |
Spritesheet image data. |
Members
The maximum number of Textures to build per process.
- Default Value:
- 1000
animations Record<keyof, Texture[]>
A map containing the textures for each animation. Can be used to create an AnimatedSprite:
Example
import { AnimatedSprite } from 'pixi.js';
new AnimatedSprite(sheet.animations['anim_name']);
Reference to the original JSON data.
linkedSheets Spritesheet<S>[]
For multi-packed spritesheets, this contains a reference to all the other spritesheets it depends on.
The resolution of the spritesheet.
textures Record<keyof, Texture>
A map containing all textures of the sprite sheet. Can be used to create a Sprite:
Example
import { Sprite } from 'pixi.js';
new Sprite(sheet.textures['image.png']);
textureSource TextureSource
Reference to ths source texture.
Methods
Destroy Spritesheet and don't use after this.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
destroyBase |
boolean |
<optional> |
false |
Whether to destroy the base texture as well |
Parser spritesheet from loaded data. This is done asynchronously to prevent creating too many Texture within a single process.
Returns:
Type | Description |
---|---|
Promise<Texture<string, Record>> |