C# Class EC.Visualization.ItemDrag

Inheritance: UnityEngine.MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
Datei anzeigen Open project: rygo6/VisualizationFramework-Unity Class Usage Examples

Public Methods

Method 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

Method 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 method

public FloatObjectInMainCamera ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
return void

NearestItemSnap() public method

public NearestItemSnap ( PointerEventData data ) : ItemSnap
data UnityEngine.EventSystems.PointerEventData
return ItemSnap

OnBeginDrag() public method

public OnBeginDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
return void

OnDrag() public method

public OnDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
return void

OnEndDrag() public method

public OnEndDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
return void

SetActualPositionRotationToTarget() public method

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
return void

SetTargetPositionRotation() public method

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

SetTargetToAcualPositionDirection() public method

Sets the target to acual position direction.
public SetTargetToAcualPositionDirection ( ) : void
return void

TranslateTargetPositionRotationRecursive() public method

public TranslateTargetPositionRotationRecursive ( Vector3 deltaPosition, Vector3 deltaDirection ) : void
deltaPosition UnityEngine.Vector3
deltaDirection UnityEngine.Vector3
return void