Private
constructorUse SpriteSheetLoader or if needed: SpriteSheet.createFromXXX() methods.
Readonly
animationsReadonly
fontsReadonly
framesReadonly
nineReadonly
slicesuse animations directly instead.
Returns the requested frame of the given animation. For legacy support this will also search slices if the frameIndex is 0
use slices or animations
use animations directly instead.
use frames instead.
Static
createNew to TypeSprite?:
If you're not an advaned user you very likely don't want this.
Try this instead:
export class MyComponent extends Component {
@res('sheet', 'path/to/my.sheet.json)
private sheet:SpriteSheeet;
// use this.sheet
}
For advanced devs:
Create an instance from SpriteSheetModel
Generated using TypeDoc
The core building block in terms of optimized 2D batch rendering.
Create a SpriteSheet:
Learn more about the Sprite Sheet generation: FIX: LINK!
Load a SpriteSheet: