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

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

181. layaAir 1.7.10 编译的时候,注释翻译成JS有问题 [ 51%]

...059 • 2017-09-28 11:59 好的,还有个问题。movieChlip里的gotoAndStop()不起作用啊。没有跳到我指定的帧 momo199059 • 2017-09-28 12:00 是在动画已经stop在某一帧的时候,使用gotoAndStop Monica • 2017-09-28 13:43 @momo199059:动画不要做在一帧上 momo19905...

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

182. 设置骨骼动画停留在某一帧/某一个时间点 [ 51%]

...y;time停留的时间点;index动画下标,默认0 function onGotoAndStop(armature: any, time: number, index: number = 0): void {     var player = armature.player;     time /= player.playbackRate;    // 根据速率得出准确的单位时间     // 停留的时间必须小于总...

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

183. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 51%]

...var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分...

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

184. spine 播放错乱 [ 51%]

...t / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } private play(): void { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this....

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

185. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 51%]

...ght / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } 附件 : --> SpineTestProject.zip 2023...

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

186. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 51%]

...d(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.gr...

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

187. 同步龙骨插槽动画方案 [ 51%]

...);     }      public destroy() {         this.mArmature.stop();//停止龙骨动画播放         this.mFactory.off(Laya.Event.COMPLETE, this, this.parseComplete);         this.mArmature.removeSelf();//从显示列表移除龙骨动画本身         this....

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

188. LAYA转换后,MovieClip的gotoAndStop方法会使子MovieClip偶尔显示不出图片 [ 50%]

LAYA转换后,MovieClip的gotoAndStop方法会使子MovieClip偶尔显示不出图片 比如mc.gotoAndStop(7) 此MC里面第7帧含有一个子元件,是一个动画,它有时显示不出,在FLASH中没有这个问题! 一开始我怀疑是子元件STOP在第一帧了,加了手动gotoAn...

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

189. 麻烦帮我看下粒子效果 [ 50%]

...ive设为true并且呼叫play(),结束时将父结点设为false并呼叫stop(),但是我发现必须将_currentTime归零,不然效果会与第一次播放的不同。请问我的操作哪里有问题? 2017-12-15 0 1 分享 微博 QZONE 微信 mobile3Dbin 赞同来自: 有没有API可以重...

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

190. 龙骨skeleton鼠标点击区域的设置 [ 50%]

...Event.LABEL, this, this.onEvent);         this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler);         this.play();         let bound: Laya.Rectangle = this.mArmature.getBounds();         this.mArmature.x = bound.width;//this.mStartX;         this.mArmature.y = boun...

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