C# Class EC.Visualization.ItemDrag

Inheritance: UnityEngine.MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
Afficher le fichier Open project: rygo6/VisualizationFramework-Unity Class Usage Examples

Méthodes publiques

Méthode Description
FloatObjectInMainCamera ( PointerEventData data ) : void
NearestItemSnap ( PointerEventData data ) : ItemSnap
OnBeginDrag ( PointerEventData data ) : void
OnDrag ( PointerEventData data ) : void
OnEndDrag ( PointerEventData data ) : void
SetActualPositionRotationToTarget ( ) : void

Sets the actual position to target. Immediately set transform equal to the targetPosition and Rotation. This is done in instances where object may switch to attached before fully done smoothing to target.

SetTargetPositionRotation ( Vector3 position, Vector3 direction ) : void

Sets the target position rotation.

SetTargetToAcualPositionDirection ( ) : void

Sets the target to acual position direction.

TranslateTargetPositionRotationRecursive ( Vector3 deltaPosition, Vector3 deltaDirection ) : void

Private Methods

Méthode Description
Awake ( ) : void
OnBeginDragAttached ( PointerEventData data ) : void
OnBeginDragAttachedHighlighted ( PointerEventData data ) : void
OnBeginDragInstantiate ( PointerEventData data ) : void
OnBeginDragNoInstantiate ( PointerEventData data ) : void
OnDragDragging ( PointerEventData data ) : void
OnEndDragDragging ( PointerEventData data ) : void
SmoothToPointAndDirection ( Vector3 point, float moveSmooth, Vector3 direction, float rotSmooth ) : void

Smooths to point and direction.

SmoothToTargetPositionRotation ( ) : bool

Smooths to target position rotation.

SwitchAttachedToDragging ( PointerEventData data ) : void
Update ( ) : void

Method Details

FloatObjectInMainCamera() public méthode

public FloatObjectInMainCamera ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
Résultat void

NearestItemSnap() public méthode

public NearestItemSnap ( PointerEventData data ) : ItemSnap
data UnityEngine.EventSystems.PointerEventData
Résultat ItemSnap

OnBeginDrag() public méthode

public OnBeginDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
Résultat void

OnDrag() public méthode

public OnDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
Résultat void

OnEndDrag() public méthode

public OnEndDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
Résultat void

SetActualPositionRotationToTarget() public méthode

Sets the actual position to target. Immediately set transform equal to the targetPosition and Rotation. This is done in instances where object may switch to attached before fully done smoothing to target.
public SetActualPositionRotationToTarget ( ) : void
Résultat void

SetTargetPositionRotation() public méthode

Sets the target position rotation.
public SetTargetPositionRotation ( Vector3 position, Vector3 direction ) : void
position UnityEngine.Vector3 Position.
direction UnityEngine.Vector3 Direction. Tansform.Forward.
Résultat void

SetTargetToAcualPositionDirection() public méthode

Sets the target to acual position direction.
public SetTargetToAcualPositionDirection ( ) : void
Résultat void

TranslateTargetPositionRotationRecursive() public méthode

public TranslateTargetPositionRotationRecursive ( Vector3 deltaPosition, Vector3 deltaDirection ) : void
deltaPosition UnityEngine.Vector3
deltaDirection UnityEngine.Vector3
Résultat void