Class Dragable
Apply this to all UI elements that can be dragged by the mouse so that inputs don't clash with things like cameras.
Inheritance
System.Object
Dragable
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public class Dragable : MonoBehaviour, IBeginDragHandler, IEndDragHandler
Methods
OnBeginDrag(PointerEventData)
Called by the Unity EventSystem when this object starts being dragged.
Declaration
public void OnBeginDrag(PointerEventData eventData)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerEventData | eventData | Contains info about the pointer event |
OnEndDrag(PointerEventData)
Called by the Unity EventSystem when this object stops being dragged.
Declaration
public void OnEndDrag(PointerEventData eventData)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerEventData | eventData | Contains info about the pointer event |