How to change the level of pixijs drawing?

the default level of pixijs drawing increases in turn, as shown in figure classify1,classify2,classify3 is drawn sequentially, and the level increases in turn. Now you want to raise the level of classify2 so that classify3 does not occlude classify2?

.

clipboard.png

Mar.28,2021

you need to install a pixi-display plugin .


app.stage.setChildIndex (classify2,app.stage.getChildIndex (classify3) + 1);


v5 built-in

child.zIndex = 1;
container.sortableChildren = true;

Menu