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

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

1. 动画播放完后,怎么知道?Animation.play() [ 100%]

...,怎么知道?Animation.play() //创建一个动画作为飞机的身体 this.feijiBody=new Laya.Animation(); //把飞机的身体添加到容器 this.addChild(this.feijiBody); //播放动画 this.feijiBody.play(0,false,this.feijiName);播放结束后 出个提示框,alert("播放结束"); 怎么写...

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

2. 代码2.0.2版本Laya.Animator发现play方法的存在BUG [ 99%]

...:   override protected function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlayState == null) { var...

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

3. laya animation播放图片集合,切换时会闪烁一下 [ 99%]

...: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return  this.animation } 我不知道你是怎么做的。这...

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

4. 动画多层混合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 98%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

5. 动画多层混合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 98%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

6. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 98%]

...) { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞...

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

7. 全局动画不能加载 [ 98%]

...id 0)&& (loop=true); (name===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && ...

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

8. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 97%]

...pt //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stag...

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

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

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

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

10. 动画实例在调用含有名字参数的时候获取不到边界 [ 94%]

...e.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./character/m1...

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