Class DragAreaControl
Drag and drop scripts area control.
Implements
System.IComparable
Namespace: FlaxEditor.CustomEditors.Dedicated
Assembly: FlaxEngine.CSharp.dll
Syntax
public class DragAreaControl : ContainerControl, IComparable, IDrawable
Constructors
DragAreaControl()
Fields
ScriptsEditor
Methods
AddScript(ScriptType)
Attach a script to the actor.
Declaration
public void AddScript(ScriptType item)
Parameters
FlaxEditor.Scripting.ScriptType
item
The script. |
Draw()
Draw the control and the children.
Declaration
public override void Draw()
Overrides
OnDragDrop(ref Float2, DragData)
When mouse dragging drops on control's area
Declaration
public override DragDropEffect OnDragDrop(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |
Overrides
OnDragEnter(ref Float2, DragData)
When mouse dragging enters control's area
Declaration
public override DragDropEffect OnDragEnter(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |
Overrides
OnDragLeave()
When mouse dragging leaves control's area
Declaration
public override void OnDragLeave()
Overrides
OnDragMove(ref Float2, DragData)
When mouse dragging moves over control's area
Declaration
public override DragDropEffect OnDragMove(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |