• Runtimes
  • Adding display object to slot container in PIXI spine

When I am adding a display object to a slot container, whether it is another spine object or just a sprite, the added display object always get rotated and skewed. So in order for it to be displayed correctly I then need to rotate and skew it like below, and then also reposition it. Anyone who knows why this is so and if there is a better way to do this so that I don't need to rotate and skew it?

let spineObject:Spine = new Spine(spineData);
spineObject.slotContainers[0].addChild(sprite);
sprite.rotation = Math.PI;
sprite.skew.y = Math.PI;
Related Discussions
...