Raymond Maarloeve
Loading...
Searching...
No Matches
HistoryBlockDrag Class Reference

Public Member Functions

void OnBeginDrag (PointerEventData eventData)
 Called by the EventSystem when a drag operation starts on this block. Records the original parent and position, re‐parents to the root canvas, and disables raycast blocking so drop targets can receive events.
 
void OnDrag (PointerEventData eventData)
 Called by the EventSystem on each drag update. Moves the block by the pointer delta, accounting for canvas scale.
 
void OnEndDrag (PointerEventData eventData)
 Called by the EventSystem when the drag operation ends. If the block hasn't been reparented by a drop handler, it returns to its original parent and position. Raycast blocking is re‐enabled.
 

Member Function Documentation

◆ OnBeginDrag()

void HistoryBlockDrag.OnBeginDrag ( PointerEventData  eventData)

Called by the EventSystem when a drag operation starts on this block. Records the original parent and position, re‐parents to the root canvas, and disables raycast blocking so drop targets can receive events.

Parameters
eventDataPointer event data containing information about the drag.

◆ OnDrag()

void HistoryBlockDrag.OnDrag ( PointerEventData  eventData)

Called by the EventSystem on each drag update. Moves the block by the pointer delta, accounting for canvas scale.

Parameters
eventDataPointer event data containing the delta movement.

◆ OnEndDrag()

void HistoryBlockDrag.OnEndDrag ( PointerEventData  eventData)

Called by the EventSystem when the drag operation ends. If the block hasn't been reparented by a drop handler, it returns to its original parent and position. Raycast blocking is re‐enabled.

Parameters
eventDataPointer event data for the end of the drag.

The documentation for this class was generated from the following file: