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

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

161. 在加载包含Animation的prefab后,动画没有显示 [ 68%]

...预制体之前先加载动画需要的图片资源,资源一般再 res/atlas里面   代码如下 Laya.loader.load(["res/atlas/zombie/z2.atlas"],Laya.Handler.create(this,function(){ Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab =...

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

162. 如何清理预加载的图集资源??? [ 68%]

...如何清理预加载的图集资源??? 通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

163. 按钮交互实现 [ 68%]

...oad(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博...

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

164. 微信小游戏在真机上网络动态加载资源的问题 [ 67%]

...Path = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

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

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

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

166. 【已解决】 sprite无法加载图片 [ 67%]

...50k],建议开始页面单独建立文件夹打包) Laya.loader.load("res/atlas/UI.atlas", null) chatLayer = new Sprite(); chatLayer.loadImage("chat.png"); Laya.stage.addChild(chatLayer); } 2018-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

167. 网络动态加载看不明白 [ 67%]

...ath加载图集到我的网络地址这样写对吗 Laya.loader.load(["res/atlas/comp.atlas"]); Laya.URL.basePath="http://192.168.6.143:8080"; 2018-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

168. 播放图集动画的问题 [ 67%]

播放图集动画的问题 使用插件导出 atlas 跟png 1 atlas里的命名,如果在10以内没问题,超过10的话,排序就乱了,排序就是 0,1,10,11,12,13..,导致不能直接使用 testUI.anim.loadAtlas("res/hand/hand_move_x.atlas").play() 因为根据文件排序来会跳...

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

169. 加载的时候动画会卡 [ 67%]

...url:"cont/cpy1.jpg",type:Loader.IMAGE});         imgArr.push({url:"res/atlas/cont.json",type:Loader.ATLAS});         Laya.loader.load(imgArr,Handler.create(this,onAssetLoaded),Handler.create(this,onProgress,null,false));     }   (function() {     function Lload() {         Lload.__s...

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

170. IDE-显示IDE创建的界面 [ 67%]

...; } } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game...

来源: Laya_示例 发布时间: 20251130