一个Prefab道具需要大需重复生成,但生成后不能控制在画面上的层级,导致道具遮挡画面的其他节点
addChild后有去改变prefab的root节点的zindex么?
this.node.addChild(newStar,10);
这样吗?
this.node.addChild(newStar,10);
没效果,新增道具还是在最上面,挡着其他节点
this.node.addChild(newStar);
this.node.zIndex = 99;
谢了,哥
一个Prefab道具需要大需重复生成,但生成后不能控制在画面上的层级,导致道具遮挡画面的其他节点
addChild后有去改变prefab的root节点的zindex么?
this.node.addChild(newStar,10);
这样吗?
this.node.addChild(newStar,10);
没效果,新增道具还是在最上面,挡着其他节点
this.node.addChild(newStar);
this.node.zIndex = 99;
谢了,哥