Search Unity

[Suggestion] Access multiple SharedComponentData in Groups almost like GetComponentGroup

Discussion in 'Entity Component System' started by Mr-Mechanical, Mar 23, 2019.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    Let's say you have multiple SharedComponentDatas (they are different types) on the same entity. I would like to access those different types in groups so I can access the different SharedComponentData grouped together. I could do GetAllUniqueSharedComponentData on both types but I'm not sure they would be grouped together. Any suggestion for this situation? Maybe this should be a feature if there isn't something for this sort of thing.

    Thanks.