帧率(FPS):1秒内死循环能跑多少次 继承于cc.Component,没有它脚本就挂不到节点上去 extends: cc.Component, 1.脚本中取节点的方式 let node=cc.find('Canvas/TNT'); 2.this指的是这个脚本而不是节点;this.node指的是脚本所在的节点 let node1=this.node.getChildByName('TNT'); 3.方式三,属性面板里加代码 转载请标明出处:cocos 文章来源: cocos 标签 脚本 cocos