C# Класс EC.Visualization.ItemDrag

Наследование: UnityEngine.MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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