Skip to content

CachedEntityQuery.GetEnumerator() Method

Definition

Namespace: Brine2D.ECS.Query

Returns a struct enumerator over the cached (Entity, Component) pairs. Use with foreach for zero-allocation iteration; no delegate or closure is created.

public System.Collections.Generic.List<(Brine2D.ECS.Entity Entity,T1 Component)>.Enumerator GetEnumerator();

Returns

System.Collections.Generic.List.Enumerator<<Entity,T1>>