Skip to content

Drop Handler

Generic drop target. Optionally highlights on pointer enter, and can destroy the dragged card when dropped.

Inspector

Field Type Description
highlightImage Image Optional image to tint when the pointer hovers over the drop area.
highlightColor Color Color used to tint the highlight image while hovering.
destroyNoteOnDrop bool If true, destroy the dragged card on drop (discard behavior).
requireUIDragNote bool If true, only accept draggables with UIDragCard on them.
acceptDragTag string If set, only accept draggables with this Unity Tag.

Public API

Method Returns
OnPointerEnter void
OnPointerExit void
OnDrop void