Collapse Sidebar


PluginDragEntered fires when the user’s mouse enters the PluginGui during a drag operation started by Plugin/StartDrag.

This event is useful for displaying a “Drop Here” UI on PluginGuis where a drag operation can be dropped. Such a UI should be hidden when either PluginGui/PluginDragLeft|PluginDragLeft or PluginGui/PluginDragDropped|PluginDragDropped fire.

See Also

  • articles/Drag and Drop in Studio Widgets
  • PluginGui/PluginDragLeft
  • PluginGui/PluginDragMoved
  • PluginGui/PluginDragDropped


Name Type Default Description

A copy of the data originally passed to Plugin/StartDrag

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”.