附Demo。


想做不同场景之间的切换。[code] spriteBtn.on(Laya.Event.CLICK, this, function (e) {
Laya.stage.destroyChildren();
newScene();
});[/code]问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一次
Laya.stage.destroyChildren();出现异常。(引擎是最新的1.7.6_beta。不使用Laya.loader.create()预加载不会出现异常!)[code] function onProLoaded() {
showProgress();
Laya.loader.create([ //预加载
"res/models/sky/skyCube.ltc",
"res/models/LayaScene_test/test.ls",
], null, processHandler);
}[/code]
附件:
stageChangeDemo.rar