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

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

351. 今天发现的关于laya.wxmini.js的问题 [ 47%]

...zip包,解压到用户文件夹后设置url.basePath,然后正常调用loader类的,这会又把文件copy一次,本地拷贝本地。。。另外我为什么要打包zip统一加载解压呢?因为3d导出文件打个zip压缩包的话,大小可以压缩非常可观。   吐槽一句...

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

352. 微信小游戏常见问题汇总(10.25更新)(TypeScript-小游戏适配文档-微信小游戏) [ 46%]

...可以把json放在网络中动态加载读取。 #### 4、声音无法用loader预加载 由于微信小游戏不支持预加载声音文件到内存的使用方式,直接用SoundManger音频管理类进行声音播放即可。 ### 后续更新: 本篇文档会汇总开发者在微信小游戏...

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

353. 垂直布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

354. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

355. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new Laya.ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox...

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

356. 位图切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin]).then( ()=>{ this.onSkinLoaded(); } ); } private onSkinLoaded(e: any = null): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.creat...

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

357. 压缩纹理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...@regClass() export class Main extends Laya.Script { onAwake(): void { Laya.loader.load(["resource/AtlasConfig.atlas"], Laya.Handler.create(this, () => { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() ...

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

358. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

... "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: Laya.TextInput = this.createInput(this.skins[i]); input...

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

359. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...G * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.load(this.skins).then(() => { this.onUIAssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.cr...

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

360. 微信小游戏加载资源问题 [ 34%]

...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...

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