Search Unity

Feature Request EntityQuery get component arrays by ComponentType

Discussion in 'Entity Component System' started by Tony_Max, Dec 5, 2022.

  1. Tony_Max

    Tony_Max

    Joined:
    Feb 7, 2017
    Posts:
    352
    Every time we use
    EntityQuery
    /
    EntityManager
    component data fetching methods with generic parameter it creates
    ComponentType
    inside. So why can't I pass my own? For now the only way to do this is to implement
    IJobChunk
    and create
    ComponentTypeHandle
    /
    DynamicComponentTypeHandle
     
    Greexonn likes this.