[LayaNative 2.0]3d场景下载出错
loader.create 这个接口 能否支持不创建3Dscene对象, 或者新扩展一个接口 只下载对应的3D资源. 不创建3DScene,
因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错
{"message":"gameThirdScriptError
Cannot read property '_addReference' of undefined;at api request success callback function
TypeError: Cannot read property '_addReference' of undefined
at t.<anonymous> (https://usr/game.js:49:8301)
at e.n._parse (https://usr/game.js:66:1995)
at Function.t._createNodeByJson (https://usr/game.js:46:14129)
at Function.t._createNodeByJson (https://usr/game.js:46:13903)
at Function.t._createNodeByJson (https://usr/game.js:46:13903)
at Function.e._parse (https://usr/game.js:61:23198)
at e._onHierarchyInnerFirstLevResouLoaded (https://usr/game.js:49:26934)
at t.e.run (https://usr/game.js:31:21504)
at l (https://usr/game.js:36:26306)
at t.e.runWith (https://usr/game.js:31:21682)","stack":""}
只要弱网 或者 无网络 加载 一个3d 预设 必定报这个错误...
因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错
{"message":"gameThirdScriptError
Cannot read property '_addReference' of undefined;at api request success callback function
TypeError: Cannot read property '_addReference' of undefined
at t.<anonymous> (https://usr/game.js:49:8301)
at e.n._parse (https://usr/game.js:66:1995)
at Function.t._createNodeByJson (https://usr/game.js:46:14129)
at Function.t._createNodeByJson (https://usr/game.js:46:13903)
at Function.t._createNodeByJson (https://usr/game.js:46:13903)
at Function.e._parse (https://usr/game.js:61:23198)
at e._onHierarchyInnerFirstLevResouLoaded (https://usr/game.js:49:26934)
at t.e.run (https://usr/game.js:31:21504)
at l (https://usr/game.js:36:26306)
at t.e.runWith (https://usr/game.js:31:21682)","stack":""}
只要弱网 或者 无网络 加载 一个3d 预设 必定报这个错误...
没有找到相关结果
已邀请:
1 个回复
charley
赞同来自: