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

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

71. Animation创建和销毁的问题 [ 80%]

... Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; tes...

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

72. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 80%]

...ya.Skeleton> = [];  public static getInstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); }  public constructor(){ super(); this.initTemplet(); }  public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } }  pub...

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

73. 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another [ 80%]

代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 附件 : --> 2017-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

74. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 79%]

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

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

75. 动画混合问题,Avatar动画混合报错. [ 79%]

....Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya...

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

76. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 79%]

...调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放An...

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

77. Laya.Animator没有动画播放完事件 [ 79%]

...件 官方文档错误,我就不发demo了如下是官方文档里的代码this.ani = role3D.getChildAt(0).getComponentByType(Laya.Animator) as Laya.Animator; //监听默认动画完成后播放站立动画 this.ani.on(Laya.Event.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承...

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

78. 3D骨骼动画卡在某一帧不再执行动作 [ 79%]

...layAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角色卡在动作的某一帧上,不再...

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

79. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 78%]

...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

80. IDE创建动画调用问题 [ 78%]

...300); Laya.stage.addChild(ani); ani.loadAnimation("AAA.ani",Handler.create(this,onLoadedAni,[ani])); } private function onLoadedAni(ani:Animation):void { ani.play(0,true); trace(ani.frames); }在加载完成之后去获取! 2017-08-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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