csharp
public struct HierarchyDepthHow far an entity is from a root. Zero for a root.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Maintained by Hierarchy on every reparent, so the transform pass can visit parents before children without recursing and without sorting.
[04](../../../docs/plan/04-ecs-and-scripting.md) calls for this to split archetypes by depth. It does not, and cannot yet: a component's value takes no part in its archetype, and making it do so means shared components, which the ECS does not have. What that costs and what is done instead is written up in TransformSystem.
Fields and properties (1)
public short ValueThe depth.
Used by (5)
- DepthColumnVixen.Engine
- HierarchyVixen.Engine
- TransformSystemVixen.Engine
- WorldSerializerTestsVixen.Engine.Tests
- SubtreeSnapshotVixen.Editor.SceneView