cocos creator~查找組件或者節點的方法

1)直接根據Canvas下面的查找 cc.find("Canvas/btn_rope").zIndex = 2000; cc.find("Canvas/rope").zIndex = 1000; 2)根據組件節點查找子節點 this.node.getChildByName("xxx") 3)查找game_scene組件 this.game_scene = cc.find("Canvas").get
相關文章
相關標籤/搜索