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?
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);
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!