使用cc.resources.load这个接口动态加载一个prefab,在谷歌浏览器上运行,有2张背景图不显示,在prefab挂载的脚步执行onload 时尝试 使用 cc.resources.load 再加载一次背景图设置到子节点的Sprite上仍然不显示。
换成xcode手机模拟器上运行时,会报错 ERROR: TypeError: undefined is not a constructor (evaluating ‘new assemblerCtor()’), location: ::
STACK:
get@src/cocos2d-jsb.4dc3b.js:34408:65
请教一下是什么问题?
-
Creator 版本:2.4.0
-
目标平台: Web / iOS 模拟器
-
详细报错信息,包含调用堆栈:TypeError: undefined is not a constructor (evaluating ‘new assemblerCtor()’), location: ::
STACK:
get@src/cocos2d-jsb.4dc3b.js:34408:65 -
重现方式:
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :macOS
-
编辑器之前是否有其它报错 :
-
出现概率:
-
额外线索: