Easy Touch5插件


版权说明:本文为博主原创文章,转载需注明出处

这两天看了下EasyTouch插件,特此记录一下。

环境 Unity 2017.4.10f1 + Easy Touch 5.0.17


Easy Touch Component说明

Easy Touch

GUI Compatibilty.png

Enable Uniyt UI detection :UGUI手势检测。
Auto update picked Unity UI:每帧更新触摸的所有UI数据。
Enable NGUI Compatibility :兼容NGUI手势检测。
NGUI Layers:检测NGUI对象层级。
Camera:NGUI相机。


Automatic selection.png

Enable auto-select:是否对3D对象进行检测。
pickable layers 3D :检测对象层级。
Auto update picked gameobject :每帧更新触摸检测到的所有对象属性。
Enable 2D collider:是否检测具有2D collider的对象。
pickable 2D layers :检测2D对象层级。


General gesture properties.png

Priority to:手势类型。Tap点击,Slips滑动。
Stationary tolerance :点击手势容错直径。
Long tap time:长按触发时间。
Double tap time:双击间隔。
Swipe tolerance :滑动容错距离。
always sent swipe event:不管滑动距离是否达到Swipe tolerance限制最小距离都不断触发滑动事件。


Two fingers gesture properties.png

2 Fingers gesture:是否支持双指手势。
Pick method:手势识别方式。Finger模式下手指必须覆盖在对象上。Average模式下当同时触碰两个对象时,计算平均值来决定选择的对象。
Enable swipe & drag :是否启用滑动和拖动手势。
Enable Pinch:是否启用缩放手势。
Min pinch length:缩放手势启用的最小距离。
Enable twist:是否启用旋转手势。
Min twist angle :旋转手势启用的最小角度。


second finger simulation.png

Enable simulation :是否启用双指模拟。
Texture:使用图片。
Twist & pinch key / Swipe key :启用缩放和旋转手势的按键。


Easy Touch Trigger

ETT.png

Enable + Trigger Name :是否启用手势。
Testing on:作用对象。
Only if on me(require a collider):只作用于自身(具有collider组件)对象。
All the time, or other object:只作用于指定对象。
Other receiver:是否接收指定对象的触发事件。
Method:事件方法。
Parameter to send :向方法传递的参数。


Quick Touch(触摸)

Quick Touch.png

Name:手势唯一标识。
2 fingers gesture:双指操作。
Action triggering:触发动作(Start开始、Down按下、Up抬起)。
Allow multi-touc:多指操作。
Allow over UI Element:透过UI作用于游戏对象。


Quick Tap(点击)

Quick Tap.png

Action triggering:Simple_Tap单击、Double_Tap双击。


Quick Long Tap(长按)

Quick Long Tap.png

Action triggering:Start长按开始、InProgress长按中、End长按结束。


Quick Enter Over Exit(移入移出物体)

Quick Enter Over Exit.png


Quick Swipe(滑动)

Quick Swipe.png

Allow swipe start over me:在物体上滑动。
Triggering:In Progress、End
Swipe direction:滑动方向。
Enable simple action:进行一些简单的动作(旋转、位移、缩放)。


Quick Drag(拖拽)

Quick Drag.png

Allow on the axes:拖拽的区域。
Stop drag on collision enter:触碰到碰撞体是停止拖拽。
Reset physic on drag:拖拽时停止使用物理特性。


Quick Pinch(双指伸缩)

Quick Pinch.png

Gesture over me:作用于对象上。
Triggering:InProgress、End
Pinch direction:伸缩方向(All、In、Out)。


Quick Twist(双指转动)

Quick Twist.png

Twist direction:转动方向(All、Clockwise、Counterclockwise)。


Easy Touch Controls部分组件说明

Joystick

Joystick.png

Activated:是否激活Joystick。
Visible:是否显示Joystick。
Use Fixed Update:在Fixed Update中进行物理操作。
Unregister at disabling time:禁用时注销插件。


Position & Size

Position&Size.png

Type:Joystick类型。Static静态,Dynamic动态(用户点击时Joystick显示在点击区域,不点击时不出现,可自行设置区域)
Anchor:锚点设置。
No offset thumb:勾选后点击Joystick,摇杆定位到点击位置,没有偏移量。
No return of then thumb:摇杆不复位。
Background size:背景大小。
Thumb size:摇杆大小。
Radius based on:Thumb移动半径。


Axes properties

Axes properties.png

Enable Unity axes:是否启用Unity虚拟键。
Allow Unity axes on standalone:是否允许在PC平台使用Unity虚拟键。
Force visible:是否强制显示。

Turn & Move direction Action:是否启用旋转和移动操作。
Atuo link on tag:通过标签自动查找游戏对象。
Direct action to:控制对象。
Move curve:移动曲线。
Move speed:移动速度。
Intial rotation:初始角度。
Lock in jump:锁定jump(y轴)。
Gravity:物体重力。

Horizontal/Vertical axis:水平/竖直轴。
Recate on:执行时机。
Dead zone method:死区设置方式。死区:误触范围,在该范围内,不对游戏对象进行操作。
Dead length:死区范围。
Inverted axis:反向操作。
On/Off Threshold:开关阈值。


Camera

Camera.png

Enable tracking:启用相机跟随。
Auto link to tag:根据标签查找Camera。
Target mode:目标类型。
Camera target:摄像机跟随对象。
Camera mode:摄像机跟随模式。
Offset:偏移量。


Sprites

Sprites.png


Events

Events.png


Button

ETC Button.png


Behaviour

Behaviour.png

Swipe in:点击状态下,从Button区域外滑入Button区域,触发事件。
Swipt out:点击状态下,从Button区域滑出Button区域,取消事件。
Value over the time.png

这几个没明白是干什么的。

你可能感兴趣的:(Easy Touch5插件)