Search Unity

GetComponentData(Entity entity, ComponentType type)

Discussion in 'Entity Component System' started by sunrisebacon, Jun 17, 2020.

  1. sunrisebacon

    sunrisebacon

    Joined:
    Jul 15, 2017
    Posts:
    16
    Can we please get an overload of GetComponentData (and GetComponent for Systems) that takes a ComponentType parameter instead of the generic type?

    In my scenario, I'm storing a list of entity references and component types and pass those to a system along with a job struct.

    The system is only responsible for loading the component data for the specific entities and passes it on to the job.
     
    lclemens, Heptagram064 and Neil-Corre like this.