Search Unity

ComponentGroup with EntityArchetypeQuery can't get GetTransformAccessArray()

Discussion in 'Entity Component System' started by Kichang-Kim, Dec 16, 2018.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Hi, I found that ComponentGroup with EntityArchetypeQuery (All=Transform) cannot get GetTransformAccessArray(). When I call GetTransformAccessArray(), it throw error that type Transform is not contained.

    Old way (ComponentGroup with ComponentType.Create<Transform>()) does work correctly.