Interface ISceneEditingContext
Shared interface for scene editing utilities.
Namespace: FlaxEditor
Assembly: FlaxEngine.CSharp.dll
Syntax
public interface ISceneEditingContext
Properties
Selection
Gets the list of selected scene graph nodes in the editor context.
Declaration
List<SceneGraphNode> Selection { get; }
Property Value
|
System.Collections.Generic.List<FlaxEditor.SceneGraph.SceneGraphNode>
|
Viewport
Gets the main or last editor viewport used for scene editing within this context.
Declaration
EditorViewport Viewport { get; }
Property Value
|
EditorViewport
|
Methods
DeleteSelection()
Deletes selected objects.
Declaration
void DeleteSelection()
Deselect(SceneGraphNode)
Deselects node.
Declaration
void Deselect(SceneGraphNode node)
Parameters
|
FlaxEditor.SceneGraph.SceneGraphNode
node
The node to deselect. |
FocusSelection()
Focuses selected objects.
Declaration
void FocusSelection()
RenameSelection()
Opends popup for renaming selected objects.
Declaration
void RenameSelection()
Select(SceneGraphNode, Boolean)
Selects the specified node.
Declaration
void Select(SceneGraphNode node, bool additive = false)
Parameters
|
FlaxEditor.SceneGraph.SceneGraphNode
node
The node. |
|
System.Boolean
additive
if set to |
Spawn(Actor, Actor, Int32, Boolean)
Spawns the specified actor to the game (with undo).
Declaration
void Spawn(Actor actor, Actor parent = null, int orderInParent = -1, bool autoSelect = true)
Parameters
|
Actor
actor
The actor. |
|
Actor
parent
The parent actor. Set null as default. |
|
System.Int32
orderInParent
The order under the parent to put the spawned actor. |
|
System.Boolean
autoSelect
True if automatically select the spawned actor, otherwise false. |