-
Creator 版本:1.9.1
-
目标平台: Web
-
重现方法:在碰撞方法调用时候,用预制体生成撞击对象的一个子节点(类似子弹打到敌人身上,敌人头顶漂浮扣除的血量文字)
-
打印信息: 该子节点锚点 x,y坐标皆显示 [Exception: TypeError: Cannot read property ‘width’ of null at cc_Node.get [as width] (http://127.0.0.1:7456/app/engine/bin/cocos2d-js-for-preview.js:9901:38) at cc_Node.invokeGetter (: 2:14)]
使用了无效的变量去获取width属性?相关的代码或者demo工程?