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

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

171. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 64%]

..., ["Content-Type", "application/json"]);         }         private completeHandler(e: any): void {             console.log("netconnection complete:", e);             if (e) {                 var adpter: number = e.adpter;                 var request: URLRequest = ...

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

172. 引擎加载动画过程中断网,动画还会继续加载吗? [ 64%]

...中断网,动画还会继续加载吗? 引擎加载动画完成的 event.complet 事件,在加载动画过程中断网,然后重连网络后,该事件一直没有被触发?请问有什么解决方案吗? 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

173. 在native下 Laya.Browser.window.Blob不存在 [ 64%]

...est: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是a...

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

174. Laya.Sprite loadImage 参数问题 [ 64%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编译报错。 2020-05-22 添加评论 ...

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

175. 打包app,http无法设置content-type [ 64%]

...b:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || ...

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

176. 网络图片加载回调问题 [ 63%]

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

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

177. 怎么对动画进行毎帧侦听? [ 63%]

怎么对动画进行毎帧侦听? ani.on(Laya.Event.COMPLETE, this, _OnComplete);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办...

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

178. HttpRequest如何发送JSON数据 [ 63%]

...logReq = new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json", null); 服务端无法获取数据 2017-09-06 4 条评论 免费帖 ...

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

179. 龙骨删除后内存不减少 [ 63%]

...下   let templet = new Laya.Templet();         templet.on(Laya.Event.COMPLETE, this, () => {             this.skeleton = templet.buildArmature(1);                          this.pos1.addChild(this.skeleton);             this.skeleton.play("work", true);         }...

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

180. 场景管理 · LayaAir3.0文档 · LAYABOX [ 63%]

...am 打开页面的参数,会传递给onOpened方法(可选) * @param complete 打开完成回调,返回场景实例(可选) * @param progress 加载进度回调(可选) */ static open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Hand...

来源: Laya3.0_文档 发布时间: 20230717