Entity.SetActiveHierarchically(bool) Method
Definition
Namespace: Brine2D.ECS
Sets IsActive on this entity and all of its descendants. Use this to toggle an entire hierarchy in one call instead of walking children manually.
Parameters
active System.Boolean
The active state to apply.
Returns
Entity
This entity for method chaining.
Remarks
Query invalidation is batched: the world's active-state notification is fired once after all descendants are updated rather than once per entity, avoiding O\(entities × queries\) redundant invalidations.