|
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.
|
|
◆ 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
-
eventData | Pointer 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
-
eventData | Pointer 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
-
eventData | Pointer event data for the end of the drag. |
The documentation for this class was generated from the following file: