大约有 554 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(515) Laya2.0_文档(17) Laya3.0_文档(12) Laya3.0_api(4) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
...以在Laya.MiniAdpter.getFileList()查找到对应缓存 但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取 如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...
来源: Laya_社区 发布时间: 20180825
...ned 用了ByteArray的zlib.min.js后报错 runtime运行报错! 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? unity到导出场景加载时抛异常,...
来源: Laya_社区 发布时间: 20170118
...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
...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
...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
...资源预加载之后,使用之前加上: 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
...无法触发, 并且导致游戏内之后的流程中所有callback如Laya.loader.load(), SoundManager.playSound()等一系列系统方法无法回调. 解决方案: 尽量不适用scale作为暂停时音量控制. 或者设置为很小的值如0.001. 简单写法如在init中: SoundManager.playS...
来源: Laya_社区 发布时间: 20201107
...创建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
...个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
...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