Class · inherits Instance
PluginDragEvent
Provides information about an in-progress drag for the drag events that plugins can respond to.
About PluginDragEvent
PluginDragEvent provides information about a drag-and-drop operation
that a plugin can respond to. An instance of it is passed as the argument to
the PluginGui drag events (PluginGui.PluginDragEntered,
PluginGui.PluginDragMoved, PluginGui.PluginDragLeft, and
PluginGui.PluginDragDropped) which fire as a drag started with
Plugin.StartDrag moves over, into, out of, or is released on a
plugin widget.
It carries the Sender,
MimeType, and
Data originally supplied to
Plugin.StartDrag, along with the
Position of the cursor within the widget
receiving the drag.
Properties 4
Data
: stringReadOnlyNotReplicatedThe data payload being transferred by the drag.The data being transferred by the drag, corresponding to the
Datavalue passed toPlugin.StartDragwhen the drag began. This property is read-only and defaults to an empty string.MimeType
: stringReadOnlyNotReplicatedThe MIME type describing the format of the dragged data, such astext/plain.Identifies the format of
PluginDragEvent.Data, corresponding to theMimeTypevalue passed toPlugin.StartDragwhen the drag began. This property is read-only and defaults to an empty string.Position
: Vector2ReadOnlyNotReplicatedThe position of the drag relative to the widget receiving it.The position, in pixels, of the mouse cursor relative to the
PluginGuiwidget receiving the drag, updated as the drag moves. This property is read-only and defaults to(0, 0).Sender
: stringReadOnlyNotReplicatedA caller-defined string identifying the source of the drag.A caller-defined string used to identify where the drag originated, corresponding to the
Sendervalue passed toPlugin.StartDragwhen the drag began. This property is read-only and defaults to an empty string.
PluginDragEvent also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.