Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DeselectRecursive

Clears the selection state of the specified node and all its ancestors or descendants recursively.
Read time 1 minuteLast updated 10 days ago

Definition

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

DeselectRecursive(HierarchyNode, HierarchyTraversalDirection)

Clears the selection state of the specified node and all its ancestors or descendants recursively.
public void DeselectRecursive(in HierarchyNode node, HierarchyTraversalDirection direction = HierarchyTraversalDirection.Children)

Parameters

The HierarchyNode to clear the selection state of.

The direction of traversal.

DeselectRecursive(ReadOnlySpan<HierarchyNode>, HierarchyTraversalDirection)

Clears the selection state of the specified nodes and all their ancestors or descendants recursively.
public void DeselectRecursive(ReadOnlySpan<HierarchyNode> nodes, HierarchyTraversalDirection direction = HierarchyTraversalDirection.Children)

Parameters

The HierarchyNodes to clear the selection state of.

The direction of traversal.