Class SelectionSet
Namespace: ValveResourceFormat.Renderer.Editor.Selection
Assembly: Renderer.dll
The scene nodes selected in a viewport. It is changed from both the UI thread and the render thread, so changes take a lock and readers iterate SelectionSet.Nodes, an immutable snapshot.
csharp
public sealed class SelectionSetInheritance
object ← SelectionSet
Properties
IsEmpty
Gets whether nothing is selected.
csharp
public bool IsEmpty { get; }Property Value
bool
Nodes
Gets the selected nodes, in the order they were selected.
csharp
public IReadOnlyList<SceneNode> Nodes { get; }Property Value
Methods
Clear()
Clears the selection.
csharp
public void Clear()Select(SceneNode?)
Replaces the selection with a single node.
csharp
public void Select(SceneNode? node)Parameters
node SceneNode?
The node to select, or null to clear the selection.
Toggle(SceneNode)
Adds a node to the selection, or removes it when it is already selected.
csharp
public void Toggle(SceneNode node)Parameters
node SceneNode
The node to toggle.

