DeferredList.ProcessRemovals(Action) Method
Definition¶
Namespace: Brine2D.ECS
Processes pending removals with a callback for each item removed. New removals queued inside the callback are deferred to the next call.
public void ProcessRemovals(System.Action<T> onRemove);
Parameters¶
onRemove System.Action<T>
Remarks¶
Structural removal completes before any callback runs so that a throwing onRemove cannot leave the committed list in a partially-compacted state. Brine2D.ECS.DeferredList<>._processing remains populated during callbacks so IsQueuedForRemoval(T) still returns true for items being processed.