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

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

501. layaAir TS项目如何引用protoBuf库? [ 57%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

502. 微信小游戏手动缓存管理,atlas依然不能从缓存读取 [ 57%]

...以在Laya.MiniAdpter.getFileList()查找到对应缓存   但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取   如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...

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

503. 为何用MovieClip加载Swf会造成H5卡死,且不报错? [ 57%]

...ned 用了ByteArray的zlib.min.js后报错 runtime运行报错! 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? unity到导出场景加载时抛异常,...

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

504. Spine动画烘焙插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 57%]

...点被添加到舞台后 onEnable(): void { //加载预制体文件 Laya.loader.load("resources/spine3.8/boy/spineboy-pma_bake.lh").then((res) => { // 创建预制体 let spineboy: Laya.Sprite = res.create(); // 获取Spine2DRenderNode组件 let spine2dRender: Laya.Spine2DRenderNode = spineboy.ge...

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

505. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 57%]

...id {         const { x, y, width, height } = this.box         Laya.loader.load('comp/image.png').then(v=>{             const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture             this.snapshot.texture = texture         });     } 2024-06-05 0 0...

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

506. SCALE_FIXED_WIDTH适配屏幕的问题 [ 57%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

507. Handler.create的回收问题 [ 56%]

...his.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(th...

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

508. 特效播放问题 [ 56%]

...资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 不能在加载的时候设置大图合集么,使用的地方真不少 Monica • 2017-10-23 20:01 @rgxianzhan:关闭大图合...

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

509. 音频在设置音量大小scale=0时SoundManager无法回调, 并且阻塞所有laya本身的callback [ 56%]

...无法触发, 并且导致游戏内之后的流程中所有callback如Laya.loader.load(), SoundManager.playSound()等一系列系统方法无法回调. 解决方案: 尽量不适用scale作为暂停时音量控制. 或者设置为很小的值如0.001.   简单写法如在init中: SoundManager.playS...

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

510. laya发布vivo小游戏失败 [ 56%]

...创建vivo快游戏项目 index.js:829 data stderr: internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Mo...

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