大约有 71 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0033 秒)
...,排序就是 0,1,10,11,12,13..,导致不能直接使用 testUI.anim.loadAtlas("res/hand/hand_move_x.atlas").play() 因为根据文件排序来会跳帧,挨个修改文件工作量又大 还有一个办法 这上面的方法的话,那不就是用的散图来播放的,不是用图集来...
来源: Laya_社区 发布时间: 20190325
...功能,而是直接自己按照laya的格式写了JSON文件,这样用loadAtlas可以加载并播放动画,现在的问题是,我的一个图集里面包含多个动画,请问这种情况有没有办法把一个图集里面的动画它分开多个来显示? 2018-05-16 添加评论 免费...
来源: Laya_社区 发布时间: 20180516
...! 2017-06-29 0 0 分享 微博 QZONE 微信 z298959 赞同来自: ani.loadAtlas(src); ani.interval = 100; ani.index = 1; ani.play(); var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width,80/bounds.height) 显示的动画都是这...
来源: Laya_社区 发布时间: 20170629
...很多逻辑无法判断 this.animation = new Animation(); this.animation.loadAtlas( _path ); this.animation.interval = _speed; // 设置播放间隔(单位:毫秒) this.animation.play(); this.addChild( this.animation ); this.animation.width 一直为0 2016-11-17 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20161117
...手机里是不一样的,咋回事? 手机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添...
来源: Laya_社区 发布时间: 20180307
... readonly BLACK_MAN = "res/atlas/default/blackMan.json"; this.aniTemp.loadAtlas(ResourcesManager.BLACK_MAN, null, ResourcesManager.BLACK_MAN); json 文件是 {"frames":{"000001man.png":{"frame":{"x":0,"y":0,"w":36,"h":110,"idx":0},"spriteSourceSize":{"x":0,"y":0},"sourceSize":{"w":36,"h":...
来源: Laya_社区 发布时间: 20170824
...就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 example 以下示例代码,创建了一个 Text 实例。 package { import laya.display.Animation; import laya.net...
来源: Laya3.0_api 发布时间: 20231115
...下,然后预加载.json文件,将.json文件的路径写到animation.loadAtlas(".json路径")里面即可,可以参考官方的一个示例:图集动画 2017-06-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回...
来源: Laya_社区 发布时间: 20170620
...轴动画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read prop...
来源: Laya_社区 发布时间: 20171028
...帧动画,引用计数问题 版本库3.0.9 当创建一个animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建...
来源: Laya_社区 发布时间: 20231212