Свойство | 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 |
Méthode | 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 |
Méthode | 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. /// |
Résultat | void |
public static AddReservedGuiArea ( Rect rec ) : void | ||
rec | Rect | |
Résultat | void |
public static GetCamera ( int index ) : Camera | ||
index | int | |
Résultat | Camera |
public static GetCurrentPickedObject ( int fingerIndex ) : GameObject | ||
fingerIndex | int | /// Finger index. /// |
Résultat | GameObject |
public static GetEnable2FingersGesture ( ) : bool | ||
Résultat | bool |
public static GetEnableAutoSelect ( ) : bool | ||
Résultat | bool |
public static GetFingerPosition ( int fingerIndex ) : Vector2 | ||
fingerIndex | int | /// Finger index. /// |
Résultat | Vector2 |
public static GetMinPinchLength ( ) : float | ||
Résultat | float |
public static GetOtherReceiverObject ( ) : GameObject | ||
Résultat | GameObject |
public static GetPickableLayer ( ) : LayerMask | ||
Résultat | LayerMask |
public static GetStationnaryTolerance ( ) : float | ||
Résultat | float |
public static GetSwipeTolerance ( ) : float | ||
Résultat | float |
public static IsRectUnderTouch ( Rect rect, bool guiRect = false ) : bool | ||
rect | Rect |
/// The Rect |
guiRect | bool | /// Determines if the rect is on GUI coordinate /// |
Résultat | bool |
public static RemoveReservedArea ( Rect rec ) : void | ||
rec | Rect | /// Rec. /// |
Résultat | void |
public static RemoveReservedGuiArea ( Rect rec ) : void | ||
rec | Rect | |
Résultat | void |
public static ResetTouch ( int fingerIndex ) : void | ||
fingerIndex | int | /// Finger index. /// |
Résultat | void |
public static SetCamera ( Camera cam, bool guiCam = false ) : void | ||
cam | Camera | /// The camera /// |
guiCam | bool | |
Résultat | void |
public static SetEnable2FingersGesture ( bool enable ) : void | ||
enable | bool |
/// true = enabled /// false = disabled /// |
Résultat | void |
public static SetEnableAutoSelect ( bool enable ) : void | ||
enable | bool | /// true = enabled /// false = disables /// |
Résultat | void |
public static SetEnablePinch ( bool enable ) : void | ||
enable | bool | /// true = enabled /// false = disables /// |
Résultat | void |
public static SetEnableTwist ( bool enable ) : void | ||
enable | bool |
/// true = enabled /// false = disabled /// |
Résultat | void |
public static SetEnabled ( bool enable ) : void | ||
enable | bool |
/// true = enable /// false = disable /// |
Résultat | void |
public static SetIsReservedArea ( bool enable ) : void | ||
enable | bool | /// Enable. /// |
Résultat | void |
public static SetMinPinchLength ( float length ) : void | ||
length | float | /// Float. /// |
Résultat | void |
public static SetMinTwistAngle ( float angle ) : void | ||
angle | float | /// Float /// |
Résultat | void |
public static SetOtherReceiverObject ( GameObject receiver ) : void | ||
receiver | GameObject | /// GameObject. /// |
Résultat | void |
public static SetPickableLayer ( LayerMask mask ) : void | ||
mask | LayerMask | /// Mask. /// |
Résultat | void |
public static SetStationnaryTolerance ( float tolerance ) : void | ||
tolerance | float | /// float Tolerance. /// |
Résultat | void |
public static SetSwipeTolerance ( float tolerance ) : void | ||
tolerance | float | /// Float /// |
Résultat | void |
public static SetlongTapTime ( float time ) : void | ||
time | float | /// Float /// |
Résultat | void |
public UpdateTouches ( bool realTouch, int touchCount ) : void | ||
realTouch | bool | |
touchCount | int | |
Résultat | void |