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

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

201. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 61%]

...动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private...

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

202. HttpRequest在网页上和APP上表现不一致 [ 61%]

...ion(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http timeout test: start...

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

203. 手机调试时http请求错误,返回Request failed Status:0 [ 60%]

...Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR, this, (e)=>{ UIFactory.closeWaitBar(); this.onHttpRequestEr...

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

204. laya.media.SoundNode [ 60%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170422

205. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 60%]

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; /...

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

206. LayaAir Animation重复播放的问题 [ 60%]

...成一次,次数++,判断次数==n即可,播放完成事件是Event.COMPLETE 2017-08-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 mrchenx 相关问题 unity导出粒子文件问题 微信关系链:LayaAir引擎针对微信...

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

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

...erval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;         isLoop ? this.toFrameIndex = -1 : this.toFrameIndex = (cols * rows -...

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

208. 网络图片加载回调问题 [ 60%]

... 赞同来自: 你应该可以通过单独监听image对象的img.on(Event.Complete,this,function(e:*):void{ 图片完成回调 })   你试试这个方法,应该可以! 2018-03-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 qq976...

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

209. Templet资源删除不掉 [ 60%]

...       factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");     ...

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

210. replaceSlotSkinName对于spine换肤不成功 [ 60%]

....WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseComplet...

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