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

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

51. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 51%]

...出来了   onMouseDown(e){ console.log("mouseDown "+e.target.name); } onMouseUp(e){ console.log("mouseup"); } 2018-10-29 0 0 分享 微博 QZONE 微信 coder 赞同来自: 可是 https://layaair.ldc.layabox.com/api 实在没有对js有什么描述,现在两眼一片黑,全靠摸索啊,请求...

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

52. 3D 鼠标检测 错乱 [ 50%]

...; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoint(mousePoint); this._mouseTouch.mousePositionX=mo...

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

53. Bug:移动设备当两手指同时触摸屏幕,event.touches数组的长度有很大概率不对 [ 49%]

...MouseDown监听到的touches.length=2时,很大概率当松开一指,MouseUp时touches.length还是为2,再按下一指,MouseDown时touches.length=3,这时准确的touches.length应该等于2才对。 2018-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

54. 微信飞机大战 升级版,包含跟踪弹,散弹,道具,积分,难度 [ 49%]

...值,飞机的初始坐标加上这个差值就可以控制移动了   MouseUp的时候,数据还原,不再执行2,3步 2017-10-04 0 0 分享 微博 QZONE 微信 hanhui 赞同来自: js版的吗 2018-01-22 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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

55. 怎么让Laya.stage不接受穿透而来的事件?给Laya.stage监听了MOUSE_UP事件,当点击舞台上按钮的时候,不仅会触发按钮的事件,同时也触发了Laya.stage的MOUSE_UP事件。 [ 46%]

...按钮触发的事件中吗?还是不起作用,照样会执行舞台的mouseUp事件…… w1114367261 • 2018-04-18 19:28 组织事件冒泡,请用event.stopPropagation()即可,你可以在点击的时候阻止冒泡,或者设置Radio的mouseThrough=false试下! w1114367261 • 2018-04...

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

56. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 45%]

...,将动效模板拖到`Button`组件下,并设置`playEvent`属性为`mouseup`。如图13所示。 ![14](img/13.png)(图13) 最后保存下,按F12导出UI,然后在项目中再次编译刚才的代码。运行效果如动图14所示,在连续按下和弹起的事件下,动画效果非常...

来源: Laya2.0_文档 发布时间: 20210715

57. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 45%]

...,将动效模板拖到`Button`组件下,并设置`playEvent`属性为`mouseup`。如图13所示。 ![14](img/13.png)(图13) 最后保存下,按F12导出UI,然后在项目中再次编译刚才的代码。运行效果如动图14所示,在连续按下和弹起的事件下,动画效果非常...

来源: Laya2.0_文档 发布时间: 20210715

58. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 44%]

...中,将动效模板拖到Button组件下,并设置`playEvent`属性为`mouseup`。如图13所示。 ![图13](img/13.png) (图13) 最后保存后,按F12导出UI,然后在项目中再次编译刚才的代码。运行效果如动图14所示,在连续按下和弹起的事件下,动画效果...

来源: Laya2.0_文档 发布时间: 20210715

59. 3D中摄像机绕物体旋转该如何实现? [ 44%]

...MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAn...

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

60. 官方案例里摄像机绕物体旋转脚本的问题 [ 43%]

...MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAn...

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