Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSelection

Sets the current selection to a single node, making all other nodes unselected.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyModule

SetSelection(HierarchyNode)

Sets the current selection to a single node, making all other nodes unselected.
public void SetSelection(in HierarchyNode node)

Parameters

The HierarchyNode to set as the selection.

SetSelection(ReadOnlySpan<HierarchyNode>)

Sets the current selection to the specified nodes, making all other nodes unselected.
public void SetSelection(ReadOnlySpan<HierarchyNode> nodes)

Parameters

The HierarchyNodes to set as the selection.