Conversion System; Getting the entity that another GameObject will be turned into?

I have GameObjects in my scene that are all going to get transformed into Entities.

During conversion, how can I tell my AuthoringComponent on GameObjectA what entity GameObjectB will be turned into?

Entity GameObjectConversionSystem.GetPrimaryEntity(otherComponentOrGameObject);

1 Like

Remember that the objects must be part of the same hierarchy, so they must be on the same subscene to get picked by GameObjectConversionSystem.GetPrimaryEntity

Ah, that’s what I was missing. thanks!