Api Editor MapEditor Selection
class

Selection

public static abstract sealed class Selection

Current selection set for the active map

Remarks

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

Properties

Name Type Description
SelectMode static SelectMode The current selection mode e.g Meshes or Objects
PivotPosition static Vector3 The position of the selection's pivot
All static IEnumerable<MapNode> All the map nodes in the current selection set

Methods

static Void Add(MapNode node)

Add the map node to the current set

static Void Set(MapNode node)

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

static Void Remove(MapNode node)

Remove this map node from the current set if it exists

static Void Clear()

Clear everything from the current selection set

static Void SelectAll()

Add all to the current selection

static Void InvertSelection()

Invert the current selection

Assembly: Sandbox.Tools Namespace: Editor.MapEditor Full Name: Editor.MapEditor.Selection