Hi - I have an ECS project that works fine in the Editor (2023.1.9f1) Play Mode. The entities are baked via a subscene in my “TowerMap” scene, which is loaded by an initial “Login” scene. The entities load fine in Play Mode, but at runtime I am stuck at the following loop in my GameManager (Monobehaviour in the “TowerMap” scene that is outside the subscene):
var em = World.DefaultGameObjectInjectionWorld.EntityManager;
var boardQuery = em.CreateEntityQuery(new ComponentType[] { typeof(ExecuteGameBase) });
Entity executeEntity;
while (!boardQuery.TryGetSingletonEntity<ExecuteGameBase>(out executeEntity)) { yield return null; }
where ExecuteGameBase is added to one of the default entities in the subscene (by the ExecuteAuthoring script - see screenshot)
Not sure if something different for building eCS - I found a couple of responses for older versions which advise using a buildconfiguration, but that doesn’t seem to be the flow anymore?
