Skip to content

EntityQuery.ForEachOptimized(Func, Action, bool) Method

Definition

Namespace: Brine2D.ECS.Query

Core optimized ForEach using ArrayPool for zero allocation. Used by the non-generic overload and the non-EntityWorld fallback path.

private void ForEachOptimized(System.Func<Brine2D.ECS.Entity,bool> filter, System.Action<Brine2D.ECS.Entity> execute, bool forceParallel=false);

Parameters

filter System.Func<Entity,System.Boolean>

execute System.Action<Entity>

forceParallel System.Boolean