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

這幾個沒明白是干什么的。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容