public static NativeArray <Entity> List() { EntityManager entityManager = World.DefaultGameObjectInjectionWorld.EntityManager; EntityQuery query = entityManager.CreateEntityQuery( typeof(HexCoordinates), typeof(HighlightTag) ); return(query.ToEntityArray(Allocator.TempJob)); }