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

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

41. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 85%]

...e { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800...

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

42. 如何通过代码控制prefab上面的时间轴动画animation[ 85%]

....play(0);   可以添加 监听函数 监听动画播放结束 ss.show.on(Event.COMPLETE, this, onAnimComplete);     good luck:) 2019-02-15 0 0 分享 微博 QZONE 微信 nevercai 赞同来自: load之后实例化prefab,实例化之后就跟普通scene一样使用了。 ... let prefab:Laya.Pref...

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

43. 3D中的Animator如何从指定的某一帧开始播放动画 [ 84%]

...); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,...

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

44. Animation动画鼠标点击事件不起作用? [ 83%]

...机按钮*/         private var m_btn_auto:Button;   m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎...

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

45. Animation的complete事件发出是时机不够准确 [ 83%]

...>= this._count) { if (loop) this._index = 0; else { _index--; stop(); } event(Event.COMPLETE); } } }  这里刚开始渲染最后一帧时,就会发出complete。也就是收到这个事件时,最后一帧刚刚显示出来。如果在complete回调里去移除特效或者切换动作,最...

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

46. Laya2.0 beta3 Animator 中的 on 事件 怎么没了 [ 83%]

...(Laya.Animator);//监听默认动画完成后播放站立动画ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]);   可是 实际上并没有啊。 没有 on 这个 函数了 .  要用什么代替啊?  2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

47. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 82%]

...率会不起作用了,回调函数经常没有执行 animaNet.once(laya.events.Event.COMPLETE, animaNet, OnNetAnimaDone); // animaNet是个laya.display.Animation 2016-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

48. 用Loader加载完atlas,然后使用animation播放问题 [ 82%]

...用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animation(); this._ani.loadImages(这里...

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

49. laya.display.Animation [ 82%]

...l Classes | Index | Frames No Frames AnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationInheritanceAnimation AnimationPlayerBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放...

来源: laya_api 发布时间: 20170929

50. laya.display.Animation [ 82%]

...l Classes | Index | Frames No Frames AnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationInheritanceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控...

来源: Laya2.0_api 发布时间: 20190513