一、【LeanTouch】脚本

  1. TapThreshold:可以设置手指点击事件成立所要求的触摸的时间

“This allows you to set how many seconds are required between a finger down/up for a tap to be registered”

  1. SwipeThreshold:可以设置屏幕移动的像素数量来触发滑动事件

“This allows you to set how many pixels of movement (relative to the ReferenceDpi) are required within the TapThreshold for a swipe to be triggered”

  1. ReferenceDpi:设置基准【每英寸点数】像素数,比如SwipeThreshold的基准

“This allows you to set the default DPI you want the input scaling to be based on”

二、【LeanTouch】实现自定义轴向旋转

  • 新建需要旋转的物体,添加【LeanRotateCustomAxis】脚本
    【LeanTouch】笔记

  • 新建空物体,添加【LeanTouch】脚本
    【LeanTouch】笔记

  • 新建EventSystem,添加脚本【Touch Input Module】脚本
    【LeanTouch】笔记

  • 旋转跳跃我闭着眼…

相关文章:

  • 2021-06-18
  • 2021-08-30
  • 2021-08-14
  • 2021-10-22
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-11-18
  • 2021-07-17
  • 2021-09-24
  • 2021-07-22
相关资源
相似解决方案