Question 1:
I just converted 50 IConvertGameObjectToEntity authoring scripts to Bakers in my project.
However I had two convert methods that created additional entities in their convert. But since I no longer have access to the Entity Manager how do I do this now?
EntityManager.CreateArchetype
EntityManager.CreateEntity
Question 2:
I also had a GameObjectConversionSystem that ran for just about every authoring script. Are these depreciated as well? If so where should all of this code that needs to run immediately after entity creation go now?
[UpdateInGroup(typeof(GameObjectAfterConversionGroup))]
public partial class VehicleConversionSystem : GameObjectConversionSystem
You have access to EntityManager in Baking System (more info below)
With baking there is another place for systems which process entities in baking cycle. You can have Baking systems Before baking process, Inside baking process and After baking process.
It should be ISystem or SystemBase which is updating in baking cycle - using [WorldSystemFilter(WorldSystemFilterFlags.BakingSystem)] and depends on where you want it to run:
Before baking - [UpdateInGroup(typeof(PreBakingSystemGroup))] (but remember all the entities will be removed in World before baking process execution)
After baking - [UpdateInGroup(typeof(PostBakingSystemGroup))]
And without specifying group if you need to inject system in baking process.
And you shouldn’t do that, and should use Baker methods for proper dependencies or BakingSystem, otherwise you breaks baking dependency tracking and incremental baking.