C# 클래스 EC.Visualization.ItemDrag

상속: UnityEngine.MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
파일 보기 프로젝트 열기: rygo6/VisualizationFramework-Unity 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

FloatObjectInMainCamera() 공개 메소드

public FloatObjectInMainCamera ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
리턴 void

NearestItemSnap() 공개 메소드

public NearestItemSnap ( PointerEventData data ) : ItemSnap
data UnityEngine.EventSystems.PointerEventData
리턴 ItemSnap

OnBeginDrag() 공개 메소드

public OnBeginDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
리턴 void

OnDrag() 공개 메소드

public OnDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
리턴 void

OnEndDrag() 공개 메소드

public OnEndDrag ( PointerEventData data ) : void
data UnityEngine.EventSystems.PointerEventData
리턴 void

SetActualPositionRotationToTarget() 공개 메소드

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
리턴 void

SetTargetPositionRotation() 공개 메소드

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

SetTargetToAcualPositionDirection() 공개 메소드

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

TranslateTargetPositionRotationRecursive() 공개 메소드

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