文档

Unity Engine

Unity Engine

DeselectRecursive

Clears the selection state of the specified node and all its ancestors or descendants recursively.
阅读时间1 分钟最后更新于 1 个月前

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.