public void Add(ref SpawnPointEntityComponent entityComponent, EGID egid) { Entity uecsEntity = ECB.Instantiate(entityComponent.prefabEntity); //SharedComponentData can be used to group the UECS entities exactly like the Svelto ones ECB.AddSharedComponent(uecsEntity, new UECSSveltoGroupID(egid.groupID)); ECB.AddComponent(uecsEntity, new UpdateUECSEntityAfterSubmission(egid)); ECB.SetComponent(uecsEntity, new Translation { Value = new float3(entityComponent.spawnPosition.x, entityComponent.spawnPosition.y , entityComponent.spawnPosition.z) }); }