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

大约有 90 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)

1. 排坑:Laya.HttpRequest()无效 [ 100%]

...码并打印到控制台。然而,什么也获取不到 下面是代码 console.log("开始测试"); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS,...

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

2. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 97%]

...s.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; ...

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

3. 怎么把console.log输出到控制台,我的只有 时间轴,跟概览。mac 2.7.0base 版本。 [ 91%]

怎么把console.log输出到控制台,我的只有 时间轴,跟概览。mac 2.7.0base 版本。 附件 : --> 2020-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自: 运行后才能看...

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

4. [LayaAirIDE3]xcode切入切出声音不播放 [ 89%]

...te onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();         // // 部分机型包内不生效         SoundManager.Instance.pauseAllEffects();     }    private onFocus() {         if (!SoundMa...

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

5. Dialog 关闭效果无效 [ 89%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

6. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 87%]

...ion;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rotation=180-n;             console.log("角度"+this.owner.rotation);         }          if(other.label === "shu"){...

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

7. 图片添加点击事件 有的不生效 [ 86%]

...nFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 private onClickBtnBoy():void { console.log("click onClickBtnBoy"); } private onClickBtnFriend():void { console.log("click onClickBtnFriend"); } private onClickBtnShop():void { ...

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

8. UI加载完成后无法获取控件的大小——超详细版问题 [ 86%]

...fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this.mypan.getBounds()); } private fitDOMElements_scroll(a, b, c, d, e, f): void { console.log("--...

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

9. 精灵添加名称 [ 86%]

...   sp=new Sprite();          sp.name = i.toString();         console.log(sp.name);         sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){         ...

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

10. [LayaAir3]laya3.2.4版本 在ide里测试点击无效 在浏览器里是正常的 [ 85%]

...示不出来的,您可以尝试打印具体的值,例如         console.log(e.currentTarget._gridData.x);         console.log(e.currentTarget._gridData.y); 就可以看到效果了 2025-03-25 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...

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