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

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

361. 点击事件会导致setTimeout setInterval 延迟执行的问题 [ 70%]

...val明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在这个是一个很大的问题, 不知...

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

362. ui编辑器中使用龙骨动画问题 [ 70%]

... 2018-03-22 14:48 this.guge.once(Laya.Event.COMPLETE,this,()=>{ console.log('解析完成'); }); console.log(this.guge.templet); 这样是监听不到Complete事件的,打印出来this.guge.templet结果为null liwenhua • 2018-03-22 14:52 使用U编辑器I做的这个好像没有使用到模...

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

363. [LayaAir3]自定义字体在移动浏览器不起作用 [ 70%]

..., (obj: object) => { // 第二个参数:成功回调       console.log("预加载字体结束>>>>", obj)       if (config.H_SCREEN) {         this.loadTopBarUI()       } else {         this.loadHomeUI()       }     }), Laya.Handler.create(this, (resProg: number...

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

364. 关于截屏的问题 [ 70%]

...错了,,能帮忙看下怎么处理吗?   代码如下: console.log("onCharge-------------------------1"); if( Laya.Browser.window.conch ) { console.log("onCharge-------------------------2"); Laya.Browser.window.conch.captureScreen(function(arrayBuff,width,height){ console.log("onCharge----...

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

365. Native IOS下获取陀螺仪数据为0 [ 70%]

...== null)             {                      console.log("当前设备不支持陀螺仪。");                      //去掉陀螺仪的移动                      Laya.Gyroscope.instance.off(Laya.Event.CHANGE, this, this.onOrientationChange);         ...

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

366. 龙骨动画残影 [ 70%]

...下:  private _onAnimationCreated(ani)     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(Laya.Event....

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

367. 关于3d的碰撞检测 [ 70%]

...相交检测 Laya.Physics.rayCast(this.ray, this.outHitInfo, 0); console.log("x:" + rayOrigin.x + " y:" + rayOrigin.y + " z" + rayOrigin.z) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._color); this...

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

368. laya生成的layaContainer div想用appendChild方法添加到某div下,但是针对sprite距离位置并没有变化 [ 70%]

... WebGL);         Laya.stage.bgColor = "#ffffff";     console.log(Laya.Render._mainCanvas);     Laya.Render._mainCanvas.source.style.top = "50px";         this.setup();     const parent = document.getElementById("preview");     const child = document.getElemen...

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

369. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 70%]

...e = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); console.log("debuginfo LayaAir3D constructer start loadres url:", this._sceneURl); Laya.loader.create([{url:this._sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { cons...

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

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

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

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