Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
youga114 opened this issue Dec 8, 2021 · 0 comments
Open

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

youga114 opened this issue Dec 8, 2021 · 0 comments

Comments

@youga114
Copy link

youga114 commented Dec 8, 2021

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
pixijs/pixijs#8030

Any feedback would be appreciated. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant