Search Unity

ArchetypeChunks & Components

Discussion in 'Entity Component System' started by nttLIVE, Oct 6, 2018.

  1. nttLIVE

    nttLIVE

    Joined:
    Sep 13, 2018
    Posts:
    80
    Is it possible to get a Component (not ComponentData, but Component ie: Transform) from an ArchetypeChunk?

    ArchetypeChunkComponentType only takes in IComponentData.

    ComponentGroup and Inject allows you to get Components but without the Any/None/All combinations which is quite useful.

    I suppose there's a specific reason why it's not allowed or maybe there's a different approach.
     
    Last edited: Oct 6, 2018