Search Unity

Create linkedEntities during conversion

Discussion in 'Entity Component System' started by Jawsarn, May 7, 2020.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
    I want to be able to read from a scriptableObject some info and add X amounts of linkedEntities during conversion of IConvertGameObjectToEntity. I want to specify the entities that shall be added by either archetype or adding components manually. Is this possible in any way?

    Edit: Answer was in me misunderstanding GameObjectConversionSystem.CreateAdditionalEntity which does what I want.
     
    Last edited: May 7, 2020
    pal_trefall likes this.