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

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

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

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

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

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

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

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

503. [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

504. 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

505. 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

506. 特效播放问题 [ 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

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

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

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

508. 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

509. [LayaAir3][LayaAir3]3.3.4 同时添加2个sk,无法正常显示 [ 56%]

...个sk,正常显示 len = 2; //如果添加2个,就都无法显示 Laya.loader.load("resources/hongdian.sk").then((templet: Laya.Templet) => { for (let i = 1; i <= len; i++) { let sk = templet.buildArmature(0); sk.pos(100 * i, 100 * i); sk.play(0, true); this.owner.addChild(sk); } }); 附...

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

510. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 55%]

...tion.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core....

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