We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swapChildren doesn't change rendering order unless the zIndex updated for all children
The rendering order should change when swapChildren used
https://www.pixiplayground.com/#/edit/Gwo_yVLnp9LxWZzEQS3Z-
after swapping two children, the rendering order doesn't change
app.stage.swapChildren(app.stage.getChildAt(i), app.stage.getChildAt(i+1))
when add values to zIndex, the order changes properly
for(let c=0; c < app.stage.children.length; c++) { app.stage.getChildAt(c).zIndex = c; }
pixi.js
Reindexing all children
My example is not perfect, however, it shows the issue.
The text was updated successfully, but these errors were encountered:
Zyie
Successfully merging a pull request may close this issue.
Current Behavior
swapChildren doesn't change rendering order unless the zIndex updated for all children
Expected Behavior
The rendering order should change when swapChildren used
Steps to Reproduce
https://www.pixiplayground.com/#/edit/Gwo_yVLnp9LxWZzEQS3Z-
after swapping two children, the rendering order doesn't change
when add values to zIndex, the order changes properly
Environment
pixi.js
version: 8.1.1Possible Solution
Reindexing all children
Additional Information
My example is not perfect, however, it shows the issue.
The text was updated successfully, but these errors were encountered: