Drag & Drop behavior script interface
The IDragDropBehaviorInstance
interface derives from IBehaviorInstance to add APIs specific to the Drag & Drop behavior.
Drag & Drop behavior events
See behavior instance event for standard behavior instance event object properties.
- "dragstart"
- Fired when the object starts being dragged.
- "drop"
- Fired when the object is dropped after being dragged.
Drag & Drop behavior APIs
- axes
- Set or get a string indicating if the dragging is locked to a specific axes, which must be one of
"horizontal"
, "vertical"
or "both"
.
- drop()
- Call while dragging to force the object to be dropped.
- isDragging
- A read-only boolean indicating if the object is currently being dragged.
- isEnabled
- A boolean indicating if the behavior is enabled. If disabled, the behavior no longer has any effect on the object.
Construct Animate Manual
Construct.net
2022-08-31
2022-08-31
You are here:
Search this manual:
This manual entry was last updated on 31 Aug, 2022 at 14:57