-
Creator 版本:1.9.1
-
目标平台:
-
详细报错信息,包含调用堆栈:
-
重现方式:
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:60%
-
额外线索:
CCNode.js:458 Uncaught TypeError: Cannot read property ‘x’ of nullset @ CCNode.js:458sample @ animation-curves.js:212simpleProcess @ animation-state.js:24715.proto.update @ animation-state.js:285update @ animation-manager.js:20update @ CCScheduler.js:405mainLoop @ CCDirector.js:1474callback @ CCGame.js:581
代码
this.node.runAction(cc.fadeOut(3.0));
cc.director.loadScene(‘main’);
切换场景
场景js代码里面多了创建 prefabs 的方法
let buffpanel = cc.instantiate(this.yingzhibuff);
let nowppp = this.world.convertToNodeSpaceAR(newball.position);
buffpanel.position = nowppp;
this.world.addChild(buffpanel);
奇怪问题 加了这代码出现概率提高
引擎大大们有谁能解释下原因?