TreeNode.md

July 22, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

TreeNode Struct

A TreeNode component stores the ChildEntities of an Entity.
It is used to build up an entity hierarchy used for scene graphs.

public struct TreeNode :
Friflo.Engine.ECS.IComponent

Implements IComponent

Remarks

To change the ChildEntities of an Entity use:

Properties
ChildCountReturns the number of ChildEntities.
ChildIdsProperty is obsolete. Use GetChildIds(EntityStore) instead.
Methods
GetChildEntities(EntityStore)Returns the child entities.
Executes in O(1).
GetChildIds(EntityStore)Returns the child entity ids.
Executes in O(1).
ToString()