Draggable Element UGUI
Scripting with the DraggableElementUGUI class.
The DraggableElementUGUI
class provides dragging support for uGUI objects.
Fields & Properties
Name
Description
Type
Access
pointerDown
If the pointer button was or is held down on the element and has not been stopped being held.
bool
protected
dragStarted
If dragging has begun.
bool
protected
dragAllowedGetter
A getter used to determine if dragging is allowed.
Func<bool>
protected
onDragStarted
A callback for when the element dragging begins.
Action
public
onDrag
A callback for when the element is being dragged.
Action
public
onDropped
A callback for when the element is dropped.
Action
public
Last updated