//properties中定义
resultDisplay: {
default: null,
type: cc.Sprite
},
//隐藏
this.resultDisplay.node.active = false;
//显示
this.resultDisplay.node.active = true;
//设置显示层级
this.resultDisplay.node.setLocalZOrder(999);
//properties中定义
resultDisplay: {
default: null,
type: cc.Sprite
},
//隐藏
this.resultDisplay.node.active = false;
//显示
this.resultDisplay.node.active = true;
//设置显示层级
this.resultDisplay.node.setLocalZOrder(999);
本文标题:Cocos Creater 隐藏与显示Node
本文链接:https://www.haomeiwen.com/subject/zlahoxtx.html
网友评论