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

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

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

5. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 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

6. 图片添加点击事件 有的不生效 [ 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

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

8. 精灵添加名称 [ 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

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

...e);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...

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

10. 打APK后加载unity导出资源出错 [ 80%]

...apName+"1.lh";         if(this.PRINT_LOG){             console.log("准备读取区域"+curIndex+" 的 路径: "+path+"地图");         }         Sprite3D.load(path,Handler.create(null,function(sp){             if(_$this.PRINT_LOG){          ...

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