spine icon indicating copy to clipboard operation
spine copied to clipboard

DisplayObject is displayed at the (0,0) position for 1 tick.

Open youga114 opened this issue 3 years ago • 0 comments

Hi.

I found an issue.

It's running example -> https://jsfiddle.net/vu7ryj9w/40/

I use pixijs and pixi-spine.

I tried to addChild displayObject in event listener of pixi-spine.

But, DisplayObject is displayed at the (0,0) position for 1 tick.

why If displayObject is not child, updateTransform does not work. DisplayObject was updated before pixi-spine be updated. and I addChild displayObject in event listener of pixi-spine. So, It's displayed at the (0,0) position before next tick.

solution How about adding event-listener functions as tickers and executing them?

reference https://github.com/pixijs/pixijs/issues/8030

Any feedback would be appreciated. :)

youga114 avatar Dec 08 '21 08:12 youga114