大约有 108 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...is.body = new laya.display.Animation(); this.addChild(this.body) this.body.loadAnimation("GameRole.ani") } } _proto.playAction = function(action){ //如果是重复的动作 不执行 if(this.action == action)return; this.action = action; this.body.play(0, true,this.type+"_" + this.action); } })(); ...
来源: Laya_社区 发布时间: 20180911
...{ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); } 附件 : --> 相关链接 : https://ask.layabox.com/question/48007 2019-03-12 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190312
...求官方帮助, 关于动画ani文件,编辑ani文件需不需要使用loadanimation方法加载?在最开始的加载吗?还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 如何检测Animation动画播放完毕后去执行...
来源: Laya_社区 发布时间: 20190910
...ct(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, recover); function recover(): void { ani.removeSelf(); Laya.Pool.recover("deathEffect", ani); } return ani; } 附件 : --> 2019-10-19 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20191019
...: 1.clearRes不会清除Animation的缓存 2.Animation会缓存,当调用loadAnimation的时候,会优先从缓存中读取,如图 3.所以当清理掉texture后,虽然重新加载了,但是Animation依然没有用新的texture。 解决办法是调用Laya.Animation.clearCache把动...
来源: Laya_社区 发布时间: 20180227
...不断增加! 关于动画ani文件,编辑ani文件需不需要使用loadanimation方法加载?在最开始的加载吗?还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方...
来源: Laya_社区 发布时间: 20170926
...换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 example 以下示例代码,创建了一个 Text 实例。 package { import laya.display.Animation; import laya.net.Loader; import...
来源: Laya3.0_api 发布时间: 20231115
...ading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni.autoPlay = true; this.refreshLoading.addChild(this.loadingAni); // 加载字体 this.loadingLabel = new Label("加载中....");...
来源: Laya2.0_示例 发布时间: 20251130