Simple Drag and Drop Subgraphs (Unity Visual Scripting)
A downloadable subgraph node
This asset requires Unity editor version 2021.2.0b14 or greater and Unity Visual Scripting version 1.7.2 or greater.
This is a pair of subgraphs allowing you to easily setup drag and drop for UI elements. One graph goes on the object you want to drag and the other is placed on the area you want to be able to drop.
*Please note that the images of the subgraphs are not of the most recent version of this project.
To Install:
Right-click an empty area in your project window. Select Import Package > Custom Package from the context menu. Find and open the Simple Drag and Drop unitypackage file then click Import on the window that opens.
To Use:
Place Draggable subgraph on the UI object you'd like to drag and drop. Place DropZone subgraph on the UI element you'd like to accept the draggable object.
Enabled Bool controls whether the subgraph is enabled, turning the whole Draggable or DropZone subgraph on/off.
Trigger Outputs of each subgraph fire once when the corresponding event occurs.
Draggable object must have Layout Element and Canvas Group components.
Draggable uses object variables that are automatically created if they do not exist (on draggable object) of: placeholder, placeholderParent, ParentToReturnTo, newSiblingIndex
DropZone object must have Layout Group component.
DropZone requires Categories input data, even if it is an empty list. Matches ANY with Draggable Object Variable (List of String) named Categories.
DropZone uses object variables that are automatically created if they do not exist (on draggable object) of: placeholderParent, ParentToReturnTo
Status | In development |
Category | Assets |
Author | Munchmo |
Made with | Unity |
Tags | bolt, node, script, super-unit, superunit, Unity, unity3d, visual-scripting, visualscripting |
Download
Click download now to get access to the following files:
Development log
- Drag and Drop v1.5bFeb 07, 2022
- Drag and Drop v1.4Feb 07, 2022
- Drag and Drop v1.3.1Feb 07, 2022
- Drag and Drop v1.3Feb 05, 2022
- Drag and Drop v1.2Feb 05, 2022
- Drag and Drop v1.1Feb 05, 2022
- Drag and Drop SubgraphsFeb 04, 2022
Leave a comment
Log in with itch.io to leave a comment.