I know I can use GetPrimaryEntity to the get the destination entity of each converted object. Are there any examples of how to get the associated entity in the conversion world? I want to destroy the conversion entities of all of the children of a game object before conversion even begins, so the destination entities are never created.
[UpdateInGroup(typeof(GameObjectDeclareReferencedObjectsGroup))]
public class EntityConversionExcludeSystem : GameObjectConversionSystem
{
protected override void OnUpdate()
{
Entities.ForEach((EntityConversionExclude exclude) =>
{
// How do I get the conversion entities of each child in exclude.transform?
});
EntityManager.DestroyEntity(GetEntityQuery(typeof(EntityConversionExclude)));
}
}