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

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

121. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 73%]

...eFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在加载图集的时候,会检测是否包含了纹理压缩转换的信息,如果包...

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

122. worker如何使用 [ 72%]

...rLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false, true);   useWorkerLoader参数设为true后,文件加载不成功? 附件 : --> Demo.zip 2019...

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

123. 创建图集的问题 [ 72%]

... //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(var i=1...

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

124. 为什么我导出的图集里面没有json文件,只有altas文件??? [ 72%]

...a - 知识达人 赞同来自: huixiang 1.7.12beta版本默认导出的是.atlas文件,之前的版本默认导出的是.json文件。你可以在UI编辑模式下F9打开项目设置修改导出类型 (建议用.atlas图集文件,预加载.atlas文件的时候不需要指定资源类型。.js...

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

125. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

....SOUND sound 声音类型 Laya.Loader.VIDEO video 视频类型 Laya.Loader.ATLAS atlas 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture) Laya.Loader.HIERARCHY HIERARCHY 层级资源,比如:场景ls文件与预制体lh文件 Laya.Loader.FONT font 位图字体...

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

126. SCALE_FIXED_WIDTH适配屏幕的问题 [ 72%]

...onent("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/create_room.atlas", ...

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

127. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 72%]

...onent("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/create_room.atlas", ...

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

128. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 71%]

提示“AtlasResourceManager:Dispose the inner Atlas。” AtlasResourceManager:Dispose the inner Atlas。 laya.webgl.js:374 >>>>altas garbageCollection =1 laya.webgl.js:372 AtlasResourceManager:Dispose the inner Atlas。 laya.webgl.js:374 >>>>altas garbageCollection =1 lay...

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

129. 有没有图集切分 [ 71%]

... laya的图集只能是.png吗? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are 问题状态 最新...

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

130. 新手,用flashbuilder配置好加载图片显示第一步就不行了 [ 71%]

...          //加载图片"             img.loadImage("/res/atlas/game/bg.png",50,50,130,35);    I:\MyDream\Dream\bin-debug\h5\res\atlas\game\bg.png  这个是图片地址 2017-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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