Click or drag to resize

ScreenTransformGesture Methods

The ScreenTransformGesture type exposes the following members.

Methods
  NameDescription
Public methodAddFriendlyGesture
Adds a friendly gesture.
(Inherited from Gesture.)
Protected methodAwake (Inherited from Gesture.)
Public methodCanBePreventedByGesture
Determines whether this instance can be prevented by specified gesture.
(Inherited from Gesture.)
Public methodCancel
Cancels this gesture.
(Inherited from Gesture.)
Public methodCancel(Boolean, Boolean)
Cancels this gesture.
(Inherited from Gesture.)
Public methodCanPreventGesture
Determines whether this instance can prevent the specified gesture.
(Inherited from Gesture.)
Protected methoddoOnePointTranslation
Calculates single finger translation.
(Overrides TwoPointTransformGestureBasedoOnePointTranslation(Vector2, Vector2, ProjectionParams).)
Protected methoddoRotation
Calculates rotation.
(Overrides TwoPointTransformGestureBasedoRotation(Vector2, Vector2, Vector2, Vector2, ProjectionParams).)
Protected methoddoScaling
Calculates scaling.
(Overrides TwoPointTransformGestureBasedoScaling(Vector2, Vector2, Vector2, Vector2, ProjectionParams).)
Protected methoddoTwoPointTranslation
Calculated two finger translation with respect to rotation and scaling.
(Overrides TwoPointTransformGestureBasedoTwoPointTranslation(Vector2, Vector2, Vector2, Vector2, Single, Single, ProjectionParams).)
Protected methodgetNumPoints
Gets the number of points.
(Inherited from TwoPointTransformGestureBase.)
Protected methodgetPointPreviousScreenPosition
Returns previous screen position of a point with index 0 or 1
(Inherited from TwoPointTransformGestureBase.)
Protected methodgetPointScreenPosition
Returns screen position of a point with index 0 or 1
(Inherited from TwoPointTransformGestureBase.)
Public methodGetScreenPositionHitData
Returns HitData for gesture's ScreenPosition, i.e. what is right beneath it.
(Inherited from Gesture.)
Public methodHasPointer
Determines whether gesture controls a pointer.
(Inherited from Gesture.)
Public methodIsFriendly
Checks if a gesture is friendly with this gesture.
(Inherited from Gesture.)
Protected methodonBegan
Called when state is changed to Began.
(Inherited from TransformGestureBase.)
Protected methodonCancelled
Called when state is changed to Cancelled.
(Inherited from Gesture.)
Protected methodonChanged
Called when state is changed to Changed.
(Inherited from TransformGestureBase.)
Protected methodOnDestroy
Unity OnDestroy handler.
(Inherited from Gesture.)
Protected methodOnDisable
Unity OnDisable handler.
(Inherited from Gesture.)
Protected methodOnEnable
Unity Start handler.
(Inherited from TwoPointTransformGestureBase.)
Protected methodonFailed
Called when state is changed to Failed.
(Inherited from Gesture.)
Protected methodonIdle
Called when state is changed to Idle.
(Inherited from Gesture.)
Protected methodonPossible
Called when state is changed to Possible.
(Inherited from Gesture.)
Protected methodonRecognized
Called when state is changed to Recognized.
(Inherited from TransformGestureBase.)
Public methodOverrideTargetPosition
Overrides the target position used in calculations this frame. If used, has to be set after every transform event. TransformGestureBase.
(Inherited from TransformGestureBase.)
Protected methodpointersCancelled
Called when pointers are cancelled.
(Inherited from Gesture.)
Protected methodpointersPressed
Called when new pointers appear.
(Inherited from TransformGestureBase.)
Protected methodpointersReleased
Called if pointers are removed.
(Inherited from TransformGestureBase.)
Protected methodpointersUpdated
Called for moved pointers.
(Inherited from TwoPointTransformGestureBase.)
Protected methodrelevantPointers1
Checks if there are pointers in the list which matter for the gesture.
(Inherited from TwoPointTransformGestureBase.)
Protected methodrelevantPointers2
Checks if there are pointers in the list which matter for the gesture.
(Inherited from TwoPointTransformGestureBase.)
Protected methodreset
Called to reset gesture state after it fails or recognizes.
(Inherited from TwoPointTransformGestureBase.)
Protected methodresetValues (Inherited from TransformGestureBase.)
Protected methodsetState
Tries to change gesture state.
(Inherited from Gesture.)
Public methodShouldBegin
Specifies if gesture can begin or recognize.
(Inherited from Gesture.)
Protected methodshouldCachePointerPosition
Should the gesture cache this pointers to use it later in calculation of ScreenPosition.
(Inherited from Gesture.)
Public methodShouldReceivePointer
Specifies if gesture can receive this specific pointer point.
(Inherited from Gesture.)
Protected methodupdateType (Inherited from TransformGestureBase.)
Top
See Also