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

大约有 165 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)

61. 微信小游戏图片加载不出来 [ 75%]

...r.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handl...

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

62. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 75%]

...建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png...

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

63. 微信小游戏 支持热更新吗? [ 75%]

...coding:encoding}中readyUrl用的是绝对路径(如http://10.10.10.69/res/atlas.comp.png),而不是相对于项目根目录的相对路径(如res/atlas/comp.png),导致的结果就是在查找缓存文件中有数据时(MiniFileMgr.getFileInfo(url)),部分地方用的绝对路径(MiniImage中)...

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

64. 精灵 · LayaAir3.0文档 · LAYABOX [ 75%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...

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

65. 官方教程时间轴动画完成后F12无法导出动画文件,CTRL+F12可以但是导出文件错误 [ 74%]

...ear文件夹及时间轴动画并没有导出,如图1应该要生成bear.atlas,但是只有comp.atlas。请问各位这是为什么呢 附件 : --> demo4.zip 2020-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个...

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

66. 内存释放问题 [ 74%]

... { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @memberof ResourcesModuleManager */ public static poolModulResDic: La...

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

67. 微信小游戏编译出错 [ 74%]

...:39 @Laya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaolanse.atlas"}]; 我直接load ...

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

68. 游戏资源加载问题! [ 74%]

...a - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader   多个图集的话...

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

69. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 73%]

... 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的...

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

70. layaAir IDE UI导出显示异常 [ 73%]

...: 问题已经找到了,是UI编辑器F12导出的时候打包的大图是atlas后缀格式造成的,而默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   所有导致了图集位置错乱,麻烦技术修...

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