API ReferenceEditor.MapEditor

Selectionclass

Current selection set for the active map

objectSelection
Namespace
Editor.MapEditor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.MapEditor.Selection

Note

Currently this only supports `Editor.MapDoc.MapNode` selections. There are selections of vertices, edges, faces too that would likely change this API

Methods6

Showing 6 methods

public static void Add(Editor.MapDoc.MapNode node)PUBLICSTATIC

Add the map node to the current set

ParameterTypeDescription
nodeMapNode
Returns:void

public static void Clear()PUBLICSTATIC

Clear everything from the current selection set

Returns:void

public static void InvertSelection()PUBLICSTATIC

Invert the current selection

Returns:void

public static void Remove(Editor.MapDoc.MapNode node)PUBLICSTATIC

Remove this map node from the current set if it exists

ParameterTypeDescription
nodeMapNode
Returns:void

public static void SelectAll()PUBLICSTATIC

Add all to the current selection

Returns:void

public static void Set(Editor.MapDoc.MapNode node)PUBLICSTATIC

Clear the current set, making the map node the only selected node

ParameterTypeDescription
nodeMapNode
Returns:void

Properties3

Showing 3 properties

public static System.Collections.Generic.IEnumerable`1<Editor.MapDoc.MapNode> Editor.MapEditor.Selection.All { get; set; }PUBLICSTATICGETSET

All the map nodes in the current selection set

Returns:IEnumerable<MapNode>

On this page