[LayaAirIDE 2.0][2.0beta5]引入场景报错


laya_01.png

截图中是基本的加载场景写法,来源于官方例子参考。只要这么写运行就会报错,无论load的路径对与否,都会报以下错误。麻烦有经验的朋友们,帮忙看下什么原因,十分感谢。RangeError: Source is too large
    at Uint8Array.set (native)
    at Pv (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:304:397)
    at Object.window.Physics3D (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:305:118)
    at Function.Laya3D.init (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.d3.js:14694:4)
    at new Test (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:14:16)
    at Object.1 (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:33:1)
    at o (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:265)
    at r (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:431)
    at file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:460
RangeError: Source is too large
    at Uint8Array.set (native)
    at Pv (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:304:397)
    at Object.window.Physics3D (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:305:118)
    at Function.Laya3D.init (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.d3.js:14694:4)
    at new Test (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:14:16)
    at Object.1 (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:33:1)
    at o (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:265)
    at r (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:431)
    at file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:11:460
已邀请:

Aar0n

赞同来自:

RangeError: Source is too large   这个多明显,你加载的东西太大

要回复问题请先

商务合作
商务合作