The Factory.Group for create and control groups of sprite
import * as PIXI from 'pixi.js';
import Factory from 'pixi-factory';
// ...
function setup() {
const sprite = Factory.Sprite.create(new PIXI.Sprite(resources.example.texture));
const group = Factory.Group.create([ sprite ], { container: app.stage });
// or
const sprite = Factory.Sprite.create(new PIXI.Sprite(resources.example.texture));
const group = Factory.Group.create([['foo', sprite]], { container: app.stage, key: true });
}
A PIXI.Sprite
or a Factory.Sprite
array.
Options for create a group sprite.
A Factory.Group
instance.
Generated using TypeDoc
The Factory.Group for create and control groups of sprite