一、【LeanTouch】脚本
- TapThreshold:可以设置手指点击事件成立所要求的触摸的时间
“This allows you to set how many seconds are required between a finger down/up for a tap to be registered”
- 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”
- ReferenceDpi:设置基准【每英寸点数】像素数,比如SwipeThreshold的基准
“This allows you to set the default DPI you want the input scaling to be based on”
- …
二、【LeanTouch】实现自定义轴向旋转
-
新建需要旋转的物体,添加【LeanRotateCustomAxis】脚本
-
新建空物体,添加【LeanTouch】脚本
-
新建EventSystem,添加脚本【Touch Input Module】脚本
-
旋转跳跃我闭着眼…