public static abstract sealed class Editor.MapEditor.Selection
Current selection set for the active map
Note
Currently this only supports `Editor.MapDoc.MapNode` selections. There are selections of vertices, edges, faces too that would likely change this API
Related Guides
Broader workflow and conceptual references connected to this API.
The scope based system works by creating a snapshot of a change set when the scope is entered and another one when the scope is disposed of. The system will automatically take care of restoring the state on undo/redo.
You can create your own nodes by making a .action game resource.
There is a large selection of Assets (Textures, Models, Sounds, ect) available to use on sbox.game, and you can use them without needing to think about downloading the files/mounting the content/ect.
Component Editor Tools work a lot like regular Editor Tools, but they're always active when a specific Component is selected. These tools generally create UI in the scene view, but they can also override input too.
Editor Events are events that are broadcast globally throughout the editor and can be listened to/fired from any Editor Project. These are useful for creating your own custom Editor Tools and making sure they can work in tandem with existing systems.
Create, open, or import movies.
Methods
Showing 6 methods
public static void Add(Editor.MapDoc.MapNode node)
Add the map node to the current set
public static void Clear()
Clear everything from the current selection set
public static void InvertSelection()
Invert the current selection
public static void Remove(Editor.MapDoc.MapNode node)
Remove this map node from the current set if it exists
public static void SelectAll()
Add all to the current selection
public static void Set(Editor.MapDoc.MapNode node)
Clear the current set, making the map node the only selected node
No results match this filter.
Properties
Showing 3 properties
public static System.Collections.Generic.IEnumerable`1<Editor.MapDoc.MapNode> Editor.MapEditor.Selection.All { get; set; }
All the map nodes in the current selection set
public static Vector3 Editor.MapEditor.Selection.PivotPosition { get; set; }
The position of the selection's pivot
public static Editor.MapEditor.SelectMode Editor.MapEditor.Selection.SelectMode { get; set; }
The current selection mode e.g Meshes or Objects
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor.MapEditor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.MapEditor.Selection |