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

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

21. 小程序开放域相关 [ 69%]

...e("pagepage"); //                    Laya.stage.event(Event.MOUSE_DOWN); //                    this.rankView.list["_content"].event(Event.MOUSE_DOWN,null);                 }             } //                         function showRan...

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

22. 鼠标事件out ,move 发生再up事件之后 [ 69%]

...this.mouseOutCallback);         // this.bubbleView.on(Laya.Event.MOUSE_DOWN, this, this.mouseDownCallback);     }   然后,鼠标down 0.5秒,松开,就会出现如下顺序 mouseUpCallback mouseOutCallback mouseMoveCallback out ,move 事件触发再up之后,但如果不长...

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

23. [0]Laya3.0.3 VideoNode不支持在微信浏览器中播放 [ 69%]

...ne.getChildByName('VideoNode') as Laya.VideoNode; Laya.stage.on(Laya.Event.MOUSE_DOWN,this, ()=>{ console.error('Laya.Event.MOUSE_DOWN'); video.play(); }); 很简单结构,只有在微信上播放不了 1677851971用户 • 2024-03-16 19:56 测试可以播放了,就是手机微信上视频...

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

24. 移动端h5项目如何获取多点触摸坐标 [ 68%]

...链接 提交 2 个回复 158*****871 赞同来自: Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown);     onMouseDown(e) { const Event = Laya.Event;   // 手机上才有 touches 属性 let touches = e.touches;   if (touches && touches.length == 2) { preRadian = Math.atan2( touc...

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

25. laya拖拽在部分机型(一部XR)StageX不对 [ 68%]

...机型(一部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent);...

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

26. UI运行时 · LayaAir3.0文档 · LAYABOX [ 68%]

...// Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂UI都可以通过勾选组件声明,让ID...

来源: Laya3.0_文档 发布时间: 20240624

27. 如何能监听到TouchStart和TouchEnd事件 [ 68%]

...023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空 Event 对象。用于事件派发中转使用。*/         static EMPTY: Event;         /** 定...

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

28. 按钮旋转 点击区域 [ 68%]

...且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_UP, context, handle...

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

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

...单点情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); })...

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

30. 关于新手引导 [ 66%]

...tion-out" guideContainer.addChild(interactionArea); gameContainer.on(Event.MOUSE_DOWN, this, downHandler); gameContainer.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private fu...

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