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
take http://pixijs.github.io/examples/#/demos/text-demo.js for example,
I added a container named view to stage,
and add textSample to view,
then, the textSample won't be displayed, is it correct or a bug?
The text was updated successfully, but these errors were encountered:
It's correct.. and the reason is the ordering of the children.
You see, within the init() function you have
// add a shiny background... var background = PIXI.Sprite.fromImage('required/assets/textDemoBG.jpg'); stage.addChild(background);
This background is added after your new view container is added, and so will be drawn after anything added to your new view container. If you move the
var view = new PIXI.Container(); stage.addChild(view)
to just before view.addChild(textSample); You'll see it works just fine :)
view.addChild(textSample);
Sorry, something went wrong.
got it, thanks a lot.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
take http://pixijs.github.io/examples/#/demos/text-demo.js for example,
I added a container named view to stage,
and add textSample to view,
then, the textSample won't be displayed, is it correct or a bug?
The text was updated successfully, but these errors were encountered: