public static void CleanFilter(this EcsFilter filter) { var world = filter.GetWorld(); for (var i = 0; i < filter.EntitiesCount; i++) { world.RemoveEntity(filter.Entities[i]); } }