Get entity of converted game object in conversion world?

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)));
        }
    }
1 Like

@redwren were you able to figure it out? I’ve tried a number of different ways to do this but haven’t been able to make it work. I ended up adding a custom tag component to the entity then having a regular component system that looks for that tag and deletes the related entity. Lots of reasons I don’t like this approach so I’m digging for a better one.