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

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

111. Animation的createFrames为何加载不了有的图集资源 [ 74%]

...{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createF...

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

112. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 74%]

...ded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:...

来源: Laya2.0_文档 发布时间: 20210715

113. 骨骼动画换装显示不刷新问题 [ 73%]

...er_png");  var mc_data = ResLoad.getInstance().getAtlasUrl("tiger_sk");  this.mFactory = new Laya.Templet(); this.mFactory.parseData(Laya.loader.getRes(mc_png),Laya.loader.getRes(mc_data));  this.skeleton = this.mFactory.buildArmature(1); 使用下面代码更换骨骼插槽纹理,无法更新...

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

114. 列表里的元素可以播放动画吗 [ 73%]

...  public function StorePage()         {             this.storelist.array = HostData.array //对list进行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index            ...

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

115. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 73%]

...码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

116. box2d引擎报错问题 [ 73%]

..._update (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...

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

117. Animation 播放完成回调有参数吗 [ 73%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

118. 动画添加了 滤镜,drawcall 次数暴增,这是为啥???? [ 73%]

...暴增,这是为啥????   var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...

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

119. 多个骨骼动画怎么按顺序播放? [ 73%]

... 微信 189*****192 赞同来自: animationUI.animation.on(Event.COMPLETE, this, this.onAnimationEnd);  监听动画播放完成 再开始播放下一个 2017-09-20 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 scorpio 相关问题 谷...

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

120. 分享:Skeleton如何监听播放完成事件! [ 73%]

...画,会自动触发Event.COMPLET事件 skeleton.player.on(Event.COMPLETE,this,onComplete);2、当skeleton.play(0,false) 第二个参数为false时,当前动画播放完成后,会自动触发Event.STOPED事件,而不是Event.COMPLETE事件 skeleton.on(Event.STOPPED, this, completeHandler); 20...

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