[LayaAirIDE 2.0]2.0版本的子域还需要初始化MiniAdpter吗?
Laya.MiniAdpter.init(true,true);
Laya.init(640,1136);
这样初始化,在opendata工程里会报错
Uncaught TypeError: Cannot read property 'init' of undefined
at new Main (Main.ts:11)
at Object.1../views/Rank (layaMaxUI.ts:1)
at o (_prelude.js:11)
at r (_prelude.js:11)
at _prelude.js:11
at require (WAGameSubContext.js:3)
at WAGameSubContext.js:3
at index_1.js:15
at require (WAGameSubContext.js:3)
at WAGameSubContext.js:3
而且在子域里Laya.loader.load 也报错。是方式有变化吗?
Laya.init(640,1136);
这样初始化,在opendata工程里会报错
Uncaught TypeError: Cannot read property 'init' of undefined
at new Main (Main.ts:11)
at Object.1../views/Rank (layaMaxUI.ts:1)
at o (_prelude.js:11)
at r (_prelude.js:11)
at _prelude.js:11
at require (WAGameSubContext.js:3)
at WAGameSubContext.js:3
at index_1.js:15
at require (WAGameSubContext.js:3)
at WAGameSubContext.js:3
而且在子域里Laya.loader.load 也报错。是方式有变化吗?
没有找到相关结果
已邀请:
1 个回复
Aar0n
赞同来自: