1.6 KiB
1.6 KiB
Sprite event handlers
Drag Cancelled
The block will execute when the player drags an object and releases it without dropping it on a target object.
Property | Type | Description |
---|---|---|
Draggable Object | Fungus.Draggable2D | Draggable object to listen for drag events on |
Drag Completed
The block will execute when the player drags an object and successfully drops it on a target object.
Property | Type | Description |
---|---|---|
Draggable Object | Fungus.Draggable2D | Draggable object to listen for drag events on |
Target Object | UnityEngine.Collider2D | Drag target object to listen for drag events on |
Drag Entered
The block will execute when the player is dragging an object which starts touching the target object.
Property | Type | Description |
---|---|---|
Draggable Object | Fungus.Draggable2D | Draggable object to listen for drag events on |
Target Object | UnityEngine.Collider2D | Drag target object to listen for drag events on |
Drag Exited
The block will execute when the player is dragging an object which stops touching the target object.
Property | Type | Description |
---|---|---|
Draggable Object | Fungus.Draggable2D | Draggable object to listen for drag events on |
Target Object | UnityEngine.Collider2D | Drag target object to listen for drag events on |
Drag Started
The block will execute when the player starts dragging an object.
Object Clicked
The block will execute when the user clicks or taps on the clickable object.
Property | Type | Description |
---|---|---|
Clickable Object | Fungus.Clickable2D | Object that the user can click or tap on |