IEntityWorld.GetEntitiesByTag(string) Method
Definition¶
Namespace: Brine2D.ECS
Gets all active entities with a specific tag.
System.Collections.Generic.IEnumerable<Brine2D.ECS.Entity> GetEntitiesByTag(string tag);
Parameters¶
tag System.String
Returns¶
System.Collections.Generic.IEnumerable<Entity>
Remarks¶
Returns a materialized list built from the internal tag index in O(matching entities). For per-frame use, prefer ForEachWithTag(string, Action<Entity>) or a cached query to avoid allocating a new list each call.