Api DragEvent
class

DragEvent

public class DragEvent

Information about a widget drag and drop event.

Constructors

DragEvent()

Properties

Name Type Description
LocalPosition Vector2 Cursor position, local to this widget.
Data DragData The drag data.
KeyboardModifiers KeyboardModifiers The keyboard modifier keys that were held down at the moment the event triggered.
HasShift Boolean Whether Shift key was being held down at the time of the event.
HasCtrl Boolean Whether Control key was being held down at the time of the event.
HasAlt Boolean Whether Alt key was being held down at the time of the event.
Action DropAction Set this to what action will be (or was) performed.
Assembly: Sandbox.Tools Declaring Type: Widget Full Name: Editor.Widget.DragEvent