Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetDepth(in HierarchyNode)

Determines the depth of a node.
Read time 1 minuteLast updated 12 days ago

Definition

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

GetDepth(HierarchyNode)

public int GetDepth(in HierarchyNode node)

Parameters

The hierarchy node.

Returns

Type

Description

intThe depth of the hierarchy node.