cocoscreator笔记

本秂侑毒 提交于 2020-01-24 02:41:08

1:node的onload函数在被添加到父节点的时候才会触发,因此实例化节点时,应该实例化的时候,再后面才添加到父节点
如:
var child = cc.instantiate(node)
parent.addChild(child)
child do something

var child = cc.instantiate(node)
child.parent = parent
child do something

2: win32工程本地地址:
D:\CocosCreator\resources\cocos2d-x\simulator\win32\

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!