PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

PluginDragDropped

PluginDragDropped fires when the user releases their mouse over a PluginGui during a drag operation started by Plugin/StartDrag.

See also

  • PluginGui/PluginDragEntered
  • PluginGui/PluginDragLeft
  • PluginGui/PluginDragMoved

Parameters

Name Type Default Description

Code Samples


Plugin Drag and Drop

This code sample creates two plugin widget windows: a drag source and a drop target. In the source window, the script creates a TextBox and TextButton to allow the user to begin a plugin drag action. The drop target window will display the MimeType of whatever is dragged into it using a TextLabel. If the MimeType is text/plain, it will display the plain text data instead. Pictured below is an animation of the drag and drop action.

Screen recording of the drag and drop action in-Studio

To run this code sample as a plugin, paste it into a Script. Then, right-click the script in the Explorer window and choose “Save as Local Plugin”.