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

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

111. 骨骼动画换装显示不刷新问题 [ 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

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

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

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

113. 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

114. 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

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

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

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

116. 动画添加了 滤镜,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

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

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

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

118. 分享: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

119. 提示资源重复加载 [ 73%]

...ya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,...

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

120. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 73%]

...40x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this...

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