Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsSelectedOrAnyAncestorSelected(in HierarchyNode)

Determines if the specified node, or any of its ancestors, is selected.
Read time 1 minuteLast updated 20 days ago

Definition

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

IsSelectedOrAnyAncestorSelected(HierarchyNode)

public bool IsSelectedOrAnyAncestorSelected(in HierarchyNode node)

Parameters

The HierarchyNode to check if it is selected or any of its ancestors is selected.

Returns

Type

Description

bool