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

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

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

...0,1,2模式都不行 //加载动画 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); // thi...

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

42. Cannot read property 'offCanplay' of null [ 88%]

...,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 onCanPlay() { this.loaded = true; this.event...

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

43. COMPLETE直接执行了,没有在播放后执行 [ 88%]

COMPLETE直接执行了,没有在播放后执行 动画资源前面已经加载过了,这里调用,如果没有COMPLETE的最后一句动画是正常播放的,但是加上后,就直接没有播放然后remove了 代码如下   附件 : --> 2018-03-05 添加评论 免费帖 --> 分享 微...

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

44. 性能测试-骨骼 [ 87%]

...fer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } function parseComplete() { for (var i = 0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFact...

来源: Laya_示例 发布时间: 20241001

45. Skeleton 类播放完成一遍后有没事件或者回调 [ 87%]

...,如果play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可!   2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.player.on(E...

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

46. Laya.HttpRequest 没有调用回调方法? [ 87%]

...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); consol...

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

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

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

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

48. iOS wkWebView [ 87%]

...Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send('http://tdev.sanguoh5.com:8001/?r=h.a.a', null, 'get', 'text'); }  private onHttpRequestError(e: any): ...

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

49. layabox加载fairygui发布的二进制文件报错 [ 86%]

...nt=Loader.getRes(resInfo.originalUrl); } resInfo.event(/*laya.events.Event.COMPLETE*/"complete",content); resInfo.offAll(); this._infoPool.push(resInfo); this._statInfo.loaded++; this.event(/*laya.events.Event.PROGRESS*/"progress",this.getProgress()); }   调试结果 (no filename):1 //res/Bag.json...

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

50. timeline 类动作节点回调 [ 86%]

... 类动作节点回调 timeline 类能否给每个动作节点添加一个 complete 或者progress 回调? 目前看来只支持所有动作节点执行完毕后complete 回调。  日常开发中给每个小动作节点添加回调时很常见的, 在使用cocos-js的时候就经常用到。 ...

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