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

大约有 989 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0131 秒)

971. 多线程Worker · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

... //加载引擎需要的资源 Laya.loader.load("../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); } } new LayaUISample; WorkerLoader.workerPath = "libs...

来源: Laya3.0_文档 发布时间: 20251010

972. [LayaAirIDE3]xcode切入切出声音不播放 [ 44%]

...d     }> = new Map();     // 回调获取方法(需在setupChannelHandlers存储回调)     private callbackMap: Map<string, () => void> = new Map();     private lastKnownPositions: Map<string, number> = new Map();      private originalBGMVolume: number = 1;     pr...

来源: Laya_社区 发布时间: 20250930

973. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 44%]

...g.png", type: Laya.Loader.IMAGE }, ];    Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));     RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务...

来源: Laya_社区 发布时间: 20180613

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

...口如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设置Laya提供的worker.js的...

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

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

...//加载引擎需要的资源 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); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...

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

976. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 41%]

... constructParams: [64, 64, 1, false, true] } ]; Laya.loader.load(resource, Handler.create(this, this.onLoadFinish)); } private onLoadFinish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据...

来源: Laya3.0_文档 发布时间: 20230303

977. laya.ui.TextInput_API3.0 [ 39%]

...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...

来源: Laya3.0_api 发布时间: 20231115

978. laya.ui.TextArea_API3.0 [ 38%]

... TextArea 实例。 package { import laya.ui.TextArea; import laya.utils.Handler; public class TextArea_Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/inpu...

来源: Laya3.0_api 发布时间: 20231115

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

...//加载引擎需要的资源 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 = "libs/worker.js";`设置worker.js的路径,这个wor...

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

980. laya.ui.Clip_API3.0 [ 38%]

...景颜色 var clip; Laya.loader.load("resource/ui/clip_num.png",laya.utils.Handler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); clip = new laya.ui.Clip("resource/ui/clip_num.png",10,1);//创建一个 Clip 类的实例对象 clip ,传入它...

来源: Laya3.0_api 发布时间: 20231115