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

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

161. 粒子中引用的图片能合图吗 [ 68%]

...Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: ...

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

162. 动画-图集动画 [ 68%]

...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.pl...

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

163. 使用API:loadAnimation 加载并播放动画问题 [ 68%]

...:hero_down。发布! 2.hero.ani路径是:bin\ani\hero.ani   3.资源atlas在:bin\res\atlas\war.atlas 4.代码如下 :   IDE版本:1.7.19.1beta tsc 版本:2.1.5     附件 : --> AirWar.zip 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

164. SCALE_FIXED_WIDTH适配屏幕的问题 [ 68%]

...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_社区 发布时间: 20181208

165. layaAir IDE UI导出显示异常 [ 68%]

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

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

166. Laya.Animation.loadAtlas 这个方法是有问题吗 [ 68%]

Laya.Animation.loadAtlas 这个方法是有问题吗 我的途径路径是, res/atlas/gun1.atlas. 然后加载这个资源的时候, 报错 Not recognize the resource suffix 版本是laya 1.7.21 2019-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

167. 2.4版本发布微信版本 勾选版本管理加载时候没有代md5后缀 [ 68%]

...: 2 人 有点感人 • 2019-12-03 11:11 图片加载路径应该是res/atlas/test-96f7a10df7.png, 而在微信环境加载的路径是res/atlas/test.png,没有md5这个后缀,加载不到这个图片。 176*****376 • 2019-12-03 11:18 我也是同样的问题 176*****376 • 2019-12-03 15:04 ...

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

168. 在加载包含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

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

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

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

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

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

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