Class
PluginDragEvent
NotCreatableNotReplicated
Provides information about an in-progress drag for the drag events that plugins can respond to.
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#
Datastring | The data payload being transferred by the drag.ReadSafeReadOnlyNotReplicated |
MimeTypestring | The MIME type describing the format of the dragged data, such as
text/plain.ReadSafeReadOnlyNotReplicated |
PositionVector2 | The position of the drag relative to the widget receiving it.ReadSafeReadOnlyNotReplicated |
Senderstring | A caller-defined string identifying the source of the drag.ReadSafeReadOnlyNotReplicated |
Data: string#
ReadOnlyNotReplicatedReadSafe
The data being transferred by the drag, corresponding to the Data value
passed to Plugin:StartDrag() when the drag began. This property is
read-only and defaults to an empty string.
MimeType: string#
ReadOnlyNotReplicatedReadSafe
Identifies the format of PluginDragEvent.Data, corresponding to
the MimeType value passed to Plugin:StartDrag() when the drag
began. This property is read-only and defaults to an empty string.
Position: Vector2#
ReadOnlyNotReplicatedReadSafe
The position, in pixels, of the mouse cursor relative to the
PluginGui widget receiving the drag, updated as the drag moves.
This property is read-only and defaults to (0, 0).
Sender: string#
ReadOnlyNotReplicatedReadSafe
A caller-defined string used to identify where the drag originated,
corresponding to the Sender value passed to Plugin:StartDrag()
when the drag began. This property is read-only and defaults to an empty
string.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild