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

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

51. Laya.stage.on的Mouse事件,正常情况下没问题,但是Laya.stage.pos移动后就失灵了,请问如何解决? [ 57%]

...ge.on(Laya.Event.MOUSE_DOWN, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouse); 在frameLoop中,我让Laya.stage.pos(movex,movey)后,就再不会调用this.onMouse事件了,请问如何解决? 2018-03-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

52. [0]Event.Mouse_Drag和Event.Mouse_Drag_End在不注册鼠标事件的情况下无法 [ 57%]

...USE_EVENTS = new Set([         Event.MOUSE_DOWN, Event.MOUSE_UP, Event.MOUSE_MOVE, Event.CLICK, Event.DOUBLE_CLICK,         Event.RIGHT_CLICK, Event.RIGHT_MOUSE_DOWN, Event.RIGHT_MOUSE_UP,         Event.MOUSE_OVER, Event.MOUSE_OUT, Event.MOUSE_WHEEL     ]);         static isMouseEv...

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

53. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 55%]

...ge.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove);   private mouseDown():void{ let mX:number = Laya.stage.mouseX; this.lastMouseX = mX; this.isDown = true; } private mouseUp():void{ this.isDown = false; } public rotate(vec:Laya.Vector3):void{...

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

54. 图片像素精准点击问题! [ 53%]

...n(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /** 按钮动画处理 */ private hitTest(t: Laya.Image) { let s = t.source.getPixels(t.mouseX, t.mouseY, 1, 1).join('')...

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

55. 如何能监听到TouchStart和TouchEnd事件 [ 49%]

...定义 mousemove 事件对象的 type 属性值。*/         static MOUSE_MOVE: string;         /** 定义 mouseover 事件对象的 type 属性值。*/         static MOUSE_OVER: string;         /** 定义 mouseout 事件对象的 type 属性值。*/         stati...

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

56. UI-RefreshList [ 49%]

...tage.mouseY)); //鼠标按下的时候进行移动侦听 e.target.on(Event.MOUSE_MOVE, this, this.onItemBoxMouseMove, [e.target, index]); } } if (e.type == Event.MOUSE_UP) { this.mouseDown = false; this.itemOnMouseUp(); } //点击标记文本 if (e.target.name == "flag" && e.type == Event.CLICK) thi...

来源: Laya2.0_示例 发布时间: 20251130

57. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText() { Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off...

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

58. laya.events.Event [ 42%]

...usedown[static] 定义 mousedown 事件对象的 type 属性值。Event  MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event  MOUSE_OUT : String = mouseout[static] 定义 mouseout 事件对象的 type 属性值。Event  MOUSE_OVER : String = mouseove...

来源: Laya2.0_api 发布时间: 20190513

59. laya.events.Event [ 41%]

...usedown[static] 定义 mousedown 事件对象的 type 属性值。Event  MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event  MOUSE_OUT : String = mouseout[static] 定义 mouseout 事件对象的 type 属性值。Event  MOUSE_OVER : String = mouseove...

来源: laya_api 发布时间: 20170929

60. laya.ui.UIEvent [ 39%]

...mousedown[static] 定义 mousedown 事件对象的 type 属性值。Event MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event MOUSE_OUT : String = mouseout[static] 定义 mouseout 事件对象的 type 属性值。Event MOUSE_OVER : String = mouseover[st...

来源: Laya2.0_api 发布时间: 20190513