Class SceneEditorWindow
Base class for editor windows dedicated to scene editing.
Inheritance
Namespace: FlaxEditor.Windows
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class SceneEditorWindow : EditorWindow, IComparable, IDrawable, ISceneEditingContextConstructors
SceneEditorWindow(Editor, Boolean, ScrollBars)
Initializes a new instance of the SceneEditorWindow class.
Declaration
protected SceneEditorWindow(Editor editor, bool hideOnClose, ScrollBars scrollBars)Parameters
| Editor
        editor The editor. | 
| System.Boolean
        hideOnClose True if hide window on closing, otherwise it will be destroyed. | 
| ScrollBars
        scrollBars The scroll bars. | 
Properties
Selection
Gets the list of selected scene graph nodes in the editor context.
Declaration
public List<SceneGraphNode> Selection { get; }Property Value
| System.Collections.Generic.List<FlaxEditor.SceneGraph.SceneGraphNode> 
 | 
Implements
Viewport
Gets the main or last editor viewport used for scene editing within this context.
Declaration
public EditorViewport Viewport { get; }Property Value
| EditorViewport 
 | 
Implements
Methods
DeleteSelection()
Deletes selected objects.
Declaration
public void DeleteSelection()Implements
Deselect(SceneGraphNode)
Deselects node.
Declaration
public void Deselect(SceneGraphNode node)Parameters
| FlaxEditor.SceneGraph.SceneGraphNode
        node The node to deselect. | 
Implements
FocusSelection()
Focuses selected objects.
Declaration
public void FocusSelection()Implements
RenameSelection()
Opends popup for renaming selected objects.
Declaration
public void RenameSelection()Implements
Select(SceneGraphNode, Boolean)
Selects the specified node.
Declaration
public void Select(SceneGraphNode node, bool additive = false)Parameters
| FlaxEditor.SceneGraph.SceneGraphNode
        node The node. | 
| System.Boolean
        additive if set to  | 
Implements
Spawn(Actor, Actor, Int32, Boolean)
Spawns the specified actor to the game (with undo).
Declaration
public 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. |