Property | Type | Description | |
---|---|---|---|
StationnaryTolerance | float | ||
autoSelect | bool | ||
enable | bool | ||
enable2FingersGesture | bool | ||
enablePinch | bool | ||
enableRemote | bool | ||
enableReservedArea | bool | ||
enableTwist | bool | ||
enabledNGuiMode | bool | ||
instance | EasyTouch, | ||
isExtension | bool | ||
longTapTime | float | ||
minPinchLength | float | ||
minTwistAngle | float | ||
nGUICameras | List |
||
nGUILayers | LayerMask | ||
pickableLayers | LayerMask | ||
receiverObject | GameObject | ||
reservedAreas | List |
||
reservedGuiAreas | List |
||
reservedVirtualAreas | List |
||
secondFingerTexture | Texture | ||
showGeneral | bool | ||
showGesture | bool | ||
showSecondFinger | bool | ||
showSelect | bool | ||
showTwoFinger | bool | ||
swipeKey | KeyCode, | ||
swipeTolerance | float | ||
touchCameras | List |
||
twistKey | KeyCode, | ||
useBroadcastMessage | bool |
Method | Description | |
---|---|---|
AddReservedArea ( Rect rec ) : void |
Adds a reserved area.
|
|
AddReservedGuiArea ( Rect rec ) : void | ||
EasyTouch ( ) : UnityEngine | ||
GetCamera ( int index ) : Camera |
Return the camera used by EasyTouch for the auto-selection.
|
|
GetCurrentPickedObject ( int fingerIndex ) : GameObject |
Gets the current picked object under a specific touch
|
|
GetEnable2FingersGesture ( ) : bool |
Return if 2 fingers gesture is enabled or disabled
|
|
GetEnableAutoSelect ( ) : bool |
Return if auto select is enabled or disabled
|
|
GetEnablePinch ( ) : bool |
Return if 2 pinch gesture is enabled or disabled
|
|
GetEnableTwist ( ) : bool |
Return if 2 twist gesture is enabled or disabled
|
|
GetEnabled ( ) : bool |
Return if EasyTouch is enabled or disabled.
|
|
GetFingerPosition ( int fingerIndex ) : Vector2 |
Gets the a specific finger position.
|
|
GetIsReservedArea ( ) : bool |
Return if Reserved Area is enable or disable
|
|
GetMinPinchLength ( ) : float |
Return the minimum length of the pinch.
|
|
GetMinTwistAngle ( ) : float |
Gets the minimum twist angle.
|
|
GetOtherReceiverObject ( ) : GameObject |
Return the other event receiver.
|
|
GetPickableLayer ( ) : LayerMask |
Gets the pickable layer.
|
|
GetStationnaryTolerance ( ) : float |
Return the stationnary tolerance.
|
|
GetSwipeTolerance ( ) : float |
Return the swipe tolerance.
|
|
GetTouchCount ( ) : int |
Return the current touches count.
|
|
GetlongTapTime ( ) : float |
Return the longs the tap time.
|
|
InitEasyTouch ( ) : void | ||
IsRectUnderTouch ( Rect rect, bool guiRect = false ) : bool |
Determines if a touch is under a specified rect guiRect.
|
|
OnDrawGizmos ( ) : void | ||
OnEnable ( ) : void | ||
OnGUI ( ) : void | ||
RemoveReservedArea ( Rect rec ) : void |
Removes a reserved area.
|
|
RemoveReservedGuiArea ( Rect rec ) : void | ||
ResetTouch ( int fingerIndex ) : void |
Resets a specific touch.
|
|
ResetTouches ( ) : void | ||
SetCamera ( Camera cam, bool guiCam = false ) : void |
Sets the camera uses by EasyTouch to linePick for auto-selection.
|
|
SetEnable2FingersGesture ( bool enable ) : void |
Enables or disables the recognize of 2 fingers gesture.
|
|
SetEnableAutoSelect ( bool enable ) : void |
Enables or disables auto select.
|
|
SetEnablePinch ( bool enable ) : void |
Enables or disables the recognize of pinch gesture
|
|
SetEnableTwist ( bool enable ) : void |
Enables or disables the recognize of twist gesture
|
|
SetEnabled ( bool enable ) : void |
Enables or disables Easy Touch.
|
|
SetIsReservedArea ( bool enable ) : void |
Sets if Reserved Area is enable or disable
|
|
SetMinPinchLength ( float length ) : void |
Sets the minimum length of the pinch.
|
|
SetMinTwistAngle ( float angle ) : void |
Sets the minimum twist angle.
|
|
SetOtherReceiverObject ( GameObject receiver ) : void |
Sets the other receiver for EasyTouch event.
|
|
SetPickableLayer ( LayerMask mask ) : void |
Sets the pickable layer.
|
|
SetStationnaryTolerance ( float tolerance ) : void |
Sets the stationnary tolerance.
|
|
SetSwipeTolerance ( float tolerance ) : void |
Sets the swipe tolerance.
|
|
SetlongTapTime ( float time ) : void |
Set the long tap time in second
|
|
Start ( ) : void | ||
Update ( ) : void | ||
UpdateTouches ( bool realTouch, int touchCount ) : void |
Method | Description | |
---|---|---|
CreateGesture ( int touchIndex, EventName, message, Finger, finger, float actionTime, SwipeType swipe, float swipeLength, Vector2 swipeVector ) : void | ||
CreateGesture2Finger ( EventName, message, Vector2 startPosition, Vector2 position, Vector2 deltaPosition, float actionTime, SwipeType swipe, float swipeLength, Vector2 swipeVector, float twist, float pinch, float twoDistance ) : void | ||
CreateStateEnd2Fingers ( GestureType gesture, Vector2 startPosition, Vector2 position, Vector2 deltaPosition, float time, bool realEnd, float fingerDistance ) : void | ||
DeltaAngle ( Vector2 start, Vector2 end ) : float | ||
FingerInTolerance ( Finger, finger ) : bool | ||
GetFinger ( int finderId ) : Finger, | ||
GetPickeGameObject ( Finger, &finger, bool twoFinger = false ) : bool | ||
GetSwipe ( Vector2 start, Vector2 end ) : SwipeType | ||
GetTwoFinger ( int index ) : int | ||
IsTouchHoverNGui ( int touchIndex ) : bool | ||
IsTouchReservedArea ( int touchIndex ) : bool | ||
OneFinger ( int fingerIndex ) : void | ||
RaiseEvent ( EventName, evnt, Gesture, gesture ) : void | ||
RaiseReadyEvent ( ) : void | ||
SendGesture ( EventName, message, Gesture, gesture ) : void | ||
SendGesture2Finger ( EventName, message, Gesture, gesture ) : void | ||
TwistAngle ( ) : float | ||
TwoFinger ( ) : void |
public static AddReservedArea ( Rect rec ) : void | ||
rec | Rect | /// Rec. /// |
return | void |
public static AddReservedGuiArea ( Rect rec ) : void | ||
rec | Rect | |
return | void |
public static GetCamera ( int index ) : Camera | ||
index | int | |
return | Camera |
public static GetCurrentPickedObject ( int fingerIndex ) : GameObject | ||
fingerIndex | int | /// Finger index. /// |
return | GameObject |
public static GetEnable2FingersGesture ( ) : bool | ||
return | bool |
public static GetFingerPosition ( int fingerIndex ) : Vector2 | ||
fingerIndex | int | /// Finger index. /// |
return | Vector2 |
public static GetOtherReceiverObject ( ) : GameObject | ||
return | GameObject |
public static GetPickableLayer ( ) : LayerMask | ||
return | LayerMask |
public static GetStationnaryTolerance ( ) : float | ||
return | float |
public static IsRectUnderTouch ( Rect rect, bool guiRect = false ) : bool | ||
rect | Rect |
/// The Rect |
guiRect | bool | /// Determines if the rect is on GUI coordinate /// |
return | bool |
public static RemoveReservedArea ( Rect rec ) : void | ||
rec | Rect | /// Rec. /// |
return | void |
public static RemoveReservedGuiArea ( Rect rec ) : void | ||
rec | Rect | |
return | void |
public static ResetTouch ( int fingerIndex ) : void | ||
fingerIndex | int | /// Finger index. /// |
return | void |
public static SetCamera ( Camera cam, bool guiCam = false ) : void | ||
cam | Camera | /// The camera /// |
guiCam | bool | |
return | void |
public static SetEnable2FingersGesture ( bool enable ) : void | ||
enable | bool |
/// true = enabled /// false = disabled /// |
return | void |
public static SetEnableAutoSelect ( bool enable ) : void | ||
enable | bool | /// true = enabled /// false = disables /// |
return | void |
public static SetEnablePinch ( bool enable ) : void | ||
enable | bool | /// true = enabled /// false = disables /// |
return | void |
public static SetEnableTwist ( bool enable ) : void | ||
enable | bool |
/// true = enabled /// false = disabled /// |
return | void |
public static SetEnabled ( bool enable ) : void | ||
enable | bool |
/// true = enable /// false = disable /// |
return | void |
public static SetIsReservedArea ( bool enable ) : void | ||
enable | bool | /// Enable. /// |
return | void |
public static SetMinPinchLength ( float length ) : void | ||
length | float | /// Float. /// |
return | void |
public static SetMinTwistAngle ( float angle ) : void | ||
angle | float | /// Float /// |
return | void |
public static SetOtherReceiverObject ( GameObject receiver ) : void | ||
receiver | GameObject | /// GameObject. /// |
return | void |
public static SetPickableLayer ( LayerMask mask ) : void | ||
mask | LayerMask | /// Mask. /// |
return | void |
public static SetStationnaryTolerance ( float tolerance ) : void | ||
tolerance | float | /// float Tolerance. /// |
return | void |
public static SetSwipeTolerance ( float tolerance ) : void | ||
tolerance | float | /// Float /// |
return | void |
public static SetlongTapTime ( float time ) : void | ||
time | float | /// Float /// |
return | void |
public UpdateTouches ( bool realTouch, int touchCount ) : void | ||
realTouch | bool | |
touchCount | int | |
return | void |