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

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

1. timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! [ 100%]

timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! 例如:   var b:number = 1; Laya.timer.once(100,this,this.play,[b]);   在play():void{   }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

2. Clip组件Bug:Play方法无法结束循环 [ 99%]

...s);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;       ...

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

3. 组件Clip(play方法的bug) [ 95%]

...,to){ (from===void 0)&& (from=0); (to===void 0)&& (to=-1); this._isPlaying=true; this.index=from; this._toIndex=to; this._index++;//源码这里没必要吧 2018-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

4. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 95%]

碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) if(this.outHitInfo.distance < 0)speedX = speedZ = 0;  这个判断中的this.outHitInfo.distance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel...

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

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

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

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

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

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

7. 龙骨动画play播放时,this._templet.getAnimationCount()报错? [ 94%]

龙骨动画play播放时,this._templet.getAnimationCount()报错? this._templet为空 getAnimNum值为0 啥原因引起的??? 2019-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 bobofuns - 我是...

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

8. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 93%]

...Channel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // ...

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

9. 龙骨动画残影 [ 93%]

...     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(Laya.Event.STOPPED, this, this._onPlayed);     ...

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

10. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 93%]

... load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet.on(Event.ERROR, this, this.on...

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