• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0019 秒)

1. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 100%]

...开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "l...

来源: Laya2.0_文档 发布时间: 20210715

2. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 99%]

...开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); }...

来源: Laya2.0_文档 发布时间: 20210715

3. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 98%]

..."; //开启worker线程 WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(te...

来源: Laya2.0_文档 发布时间: 20210715

4. LayaAir示例项目源码编译运行指南(TypeScript-LayaAir基础篇(TS)-快速上手) [ 79%]

...,可以前往官网的开发者中心,查看线上示例。 示例的资源文件位于`源码根目录/bin/res/`,如下图所示: ![5](img/5.png) ### 四、如何运行查看LayaAir引擎示例 为了验证我们的编译与项目环境没有问题,我们先把默认的示例给编译运...

来源: Laya2.0_文档 发布时间: 20210715