大约有 555 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0048 秒)
Laya_社区(472) Laya2.0_文档(36) Laya3.0_文档(20) Laya2.0_api(10) laya_api(8) Laya3.0_api(7) Laya2.0_示例(1) Laya_示例(1)
.../请求加载过程中触发的6个事件 urlLoader.addEventListener(Event.OPEN,openHandler); urlLoader.addEventListener(ProgressEvent.PROGRESS,progressEventHandler); urlLoader.addEventListener("complete",completeHandler); urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHan...
来源: Laya_社区 发布时间: 20151217
... Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 *...
来源: Laya3.0_文档 发布时间: 20241014
... -framework AVFoundation -weak_framework UIKit -framework GLKit -framework OpenGLES -framework OpenAL -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/wxh/Library/Developer/Xcode/DerivedData/ykmj-hkcpwhnxmcoyygagguzfcmsdrryg/Build/Intermediates.noindex/ykmj.build/Debug-iphoneos/ykmj...
来源: Laya_社区 发布时间: 20180322
...之后再开始着手分包,链接如下:[淘宝分包加载](https://open.taobao.com/docV3.htm?spm=a219a.7386797.0.0.7f6c669aQkYiVg&source=search&docId=119146&docType=1#ss2) ## 二、分包的使用方法 ### 1 IDE中的准备 #### 1.1 页面分包 在进行页面分包的时候,我们需要...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 *...
来源: Laya3.0_文档 发布时间: 20251105
...tmapFont.fnt", Laya.Loader.FONT).then((res) => { Laya.Scene.open(Laya.PlayerConfig.startupScene); //可以设置场景路径 }) } 场景中加载字体代码: onAwake(): void { let fnt = Laya.loader.getRes("resources/BitmapFont.fnt", Laya.Loader.FONT); ...
来源: Laya_社区 发布时间: 20250910
...an = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,receiveHandler); this.socket.on(Event.CLOSE,this,closeHandler); this.socket.on(Event.ERROR,this,errorHandler); } public function connect():void { if(!this.socket.conne...
来源: Laya_社区 发布时间: 20180202
...t; IZip, progress: (p: number) => void) { let zip = new zipClass(); zip.open(zipfile); //TODO 数据太多的时候要控制并发 zip.forEach(async entry => { if (entry.entryName == 'head.json') { } else { await this.addObject(entry.entryName, entry.getData()) } }) //写head。zip中可能没...
来源: Laya3.0_文档 发布时间: 20251010
...中的人形角色导航。 如图2-4所示,开发者可以通过选择open Agent Settings选项,打开配置界面,新增自定义的代理类型。 (图2-4) Agents的配置页面如图2-5所示, (图2-5) 注意,此页面并不是调节agent本身,而是调节适用该agent的...
来源: Laya3.0_文档 发布时间: 20251010
... private initSocket(): void { this.on(Laya.Event.OPEN, this, this.onConected); this.on(Laya.Event.ERROR, this, this.onError); } public conectToServer(): void { //“连接”按钮的回调 if (this.connected) retu...
来源: Laya_社区 发布时间: 20170602