Unity Engine documentationScript ReferenceUnity.HierarchyHierarchyFlattenedNodeDepthThe depth of the node.阅读时间1 分钟最后更新于 1 个月前Definition Type: Property Namespace: Unity.Hierarchy Assembly: UnityEngine.HierarchyCoreModule public int Depth { get; }