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

大约有 123 项符合查询结果, 库内数据总量为 4,832 项。 (搜索耗时: 0.0036 秒)

11. iOS wkWebView [ 84%]

...都没问题,求大神给解答下啊!     private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.E...

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

12. 使用getChildByName()无法得到子节点对象 [ 83%]

...    cell._childs[1].text=data.listNumber.text;             console.log(index)             //根据子节点的名字listNumber,获取子节点对象。             var listNumber1 = cell.getChildByName("text");             // var text = cell.getC...

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

13. Ts简单对象池 [ 83%]

...化则必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT<Laya.MeshSprite3D>(); this.m_ObjectPoolDic[key].push(MeshSprite); } }  //按照编号取出对应对象...

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

14. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 83%]

...libs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) {   console 窗口报错如下: ------------------------------------------ WAGame.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property ...

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

15. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 82%]

...s.ps); } down2() { this.a = Laya.stage.mouseX; this.b = Laya.stage.mouseY; console.log("鼠标点击的点" + this.a, this.b) Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.move2) } move2() { this.path.push(Laya.stage.mouseX, Laya.stage.mouseY); // console.log("移动的点集合" + this.path); thi...

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

16. 无法获取音频的时间长度 [ 81%]

...d/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

17. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 81%]

...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...

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

18. 字体相关问题 [ 81%]

...04 12:01 还有个问题: Laya.Font.defaultFont="12px,SimHei"; console.log(Laya.Font.defaultFamily); console.log(Laya.Font.defaultFont); let view:ui.TestUI=new ui.TestUI(); Laya.stage.addChild(view); console.log("font",view.lab2.font); 我设置了defaultFont 但是font输出...

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

19. untiy导出的粒子特效有播放完成的回掉吗? [ 81%]

....Sprite3D.load(url); this.m_Effect.on(Laya.Event.PLAYED, this, function(){ console.log("PLAYED callback!!"); }) this.m_Effect.on(Laya.Event.PAUSED, this, function(){ console.log("PAUSED callback!!"); }) this.m_Effect.on(Laya.Event.COMPLETE, this, function(){ console.log("COM...

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

20. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 81%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...

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