easyTouch

1.#pragma warning disable 0618

2.

//EasyTouch5.x版本的新特性可不用书写订阅事件等一套语句。
void Update()
{
//每一帧存当前手势
Gesture currentGesture = EasyTouch.current;

if (currentGesture!=null&& EasyTouch.EvtType.On_TouchStart == currentGesture.type)
{
OnTouchStart(currentGesture);
}

if (currentGesture != null && EasyTouch.EvtType.On_TouchUp == currentGesture.type)
{
OnTouchEnd(currentGesture);
}
if (currentGesture != null && EasyTouch.EvtType.On_Swipe == currentGesture.type)
{
OnTouchSwipe(currentGesture);
}

}

void OnTouchStart(Gesture gesture)
{
Debug.Log("OnTouchStart");
Debug.Log("StartPosition:" + gesture.startPosition);
}
void OnTouchEnd(Gesture gesture)
{
Debug.Log("OnTouchEnd");
Debug.Log("ActionTime:" + gesture.actionTime);
}
void OnTouchSwipe(Gesture gesture)
{
Debug.Log("OnTouchEnd");
Debug.Log("ActionTime:" + gesture.actionTime);
}

3.quickLongTap 3个。

4.quickPinch双指缩放

5.alt ctrl模拟双指 缩放 gestrue over me 有碰撞体,Trigter 该什么时候触发方法。

6.quick swipe滑动 quick tap点击 quicktouch  quick twist

扫描二维码关注公众号,回复: 1560272 查看本文章

7.可视化可能有bug

8.trigger组件 自己触发自己,别人也可以拖拽。通过object传参吧

9.ugui iDraghandler iPointdownhandler;

10.触碰灵敏度

11.pickedObject;

12.ETCInput.getAxis(

13.etcbutton  fps inpatEffect  在脚本最先执行啊,最前方,取消unity的轴 解决bug dpi适应分辨率

14.锁跳改源码啊或者不用它的锁跳自己写逻辑

15.button两种方法

猜你喜欢

转载自www.cnblogs.com/xiaomao21/p/9169167.html