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

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

281. 小米手机三指点击后,后续获得的触摸点失效 [ 70%]

...s.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches...

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

282. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 70%]

...und("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取焦点") Laya.SoundManager.playSound("sound/bg1.mp3", 0); }) Laya.stage.on(Laya.Event.BLUR, null, function(){ console.log("失去焦点") }) 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

283. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 70%]

... onTriggerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动   2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,...

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

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

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

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

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

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

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

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

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

287. 龙骨动画残影 [ 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(La...

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

288. 关于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._col...

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

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

...0, 500, 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.g...

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

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