this.userLayer.removeAllChildren();
cc.log(“userLayer count:”,this.userLayer.getChildrenCount());
为什么removeAllChildren成功了,计数为0,但显示内容只移除了一个。
下一帧显示才消失。
我现在只能在移除前先把所有children设置visible(false)。
this.userLayer.removeAllChildren();
cc.log(“userLayer count:”,this.userLayer.getChildrenCount());
为什么removeAllChildren成功了,计数为0,但显示内容只移除了一个。
下一帧显示才消失。
我现在只能在移除前先把所有children设置visible(false)。