Class DragActors<U>
Helper class for handling FlaxEditor.SceneGraph.ActorNode drag and drop.
Inheritance
System.Object
FlaxEditor.GUI.Drag.DragHelper
DragHelper<FlaxEditor.SceneGraph.ActorNode, U>
DragActors<U>
Namespace: FlaxEditor.GUI.Drag
Assembly: FlaxEngine.CSharp.dll
Syntax
public class DragActors<U> : DragHelper<ActorNode, U> where U : DragEventArgs
Type Parameters
U
|
Constructors
DragActors(Func<ActorNode, Boolean>)
Creates a new DragHelper
Declaration
public DragActors(Func<ActorNode, bool> validateFunction)
Parameters
System.Func<FlaxEditor.SceneGraph.ActorNode, System.Boolean>
validateFunction
The validation function |
Fields
DragPrefix
The default prefix for drag data used for FlaxEditor.SceneGraph.ActorNode.
Declaration
public const string DragPrefix = "ACTOR!?"
Field Value
System.String
|
Methods
FromDragData(DragData)
Tries to parse the drag data.
Declaration
public override IEnumerable<ActorNode> FromDragData(DragData data)
Parameters
DragData
data
The data. |
Returns
System.Collections.Generic.IEnumerable<FlaxEditor.SceneGraph.ActorNode>
Gathered objects or empty IEnumerable if cannot get any valid. |
Overrides
FlaxEditor.GUI.Drag.DragHelper<FlaxEditor.SceneGraph.ActorNode, U>.FromDragData(FlaxEngine.GUI.DragData)
GetDragData(ActorNode)
Gets the drag data.
Declaration
public static DragData GetDragData(ActorNode item)
Parameters
FlaxEditor.SceneGraph.ActorNode
item
The item. |
Returns
DragData
The data. |
GetDragData(Actor)
Gets the drag data.
Declaration
public static DragData GetDragData(Actor actor)
Parameters
Actor
actor
The actor. |
Returns
DragData
The data. |
GetDragData(IEnumerable<ActorNode>)
Gets the drag data.
Declaration
public static DragData GetDragData(IEnumerable<ActorNode> items)
Parameters
System.Collections.Generic.IEnumerable<FlaxEditor.SceneGraph.ActorNode>
items
The items. |
Returns
DragData
The data. |
ToDragData(ActorNode)
Gets the drag data.
Declaration
public override DragData ToDragData(ActorNode item)
Parameters
FlaxEditor.SceneGraph.ActorNode
item
|
Returns
DragData
The data. |
Overrides
FlaxEditor.GUI.Drag.DragHelper<FlaxEditor.SceneGraph.ActorNode, U>.ToDragData(FlaxEditor.SceneGraph.ActorNode)
ToDragData(Actor)
Gets the drag data.
Declaration
public DragData ToDragData(Actor actor)
Parameters
Actor
actor
The actor. |
Returns
DragData
The data. |
ToDragData(IEnumerable<ActorNode>)
Gets the drag data.
Declaration
public override DragData ToDragData(IEnumerable<ActorNode> items)
Parameters
System.Collections.Generic.IEnumerable<FlaxEditor.SceneGraph.ActorNode>
items
|
Returns
DragData
The data. |
Overrides
FlaxEditor.GUI.Drag.DragHelper<FlaxEditor.SceneGraph.ActorNode, U>.ToDragData(System.Collections.Generic.IEnumerable<FlaxEditor.SceneGraph.ActorNode>)
Extension Methods
See Also
FlaxEditor.SceneGraph.ActorNode