Search Unity

Parallel iteration across NativeHashMap / NativeMultiHashMap?

Discussion in 'Entity Component System' started by pk1234dva, Sep 15, 2021.

  1. pk1234dva

    pk1234dva

    Joined:
    May 27, 2019
    Posts:
    84
    Is there a job that would allow me to go through a NativeHashMap, NativeHashSet, or NativeMultiHashMap? I guess the HashSet could be done by simply converting the thing to an array, but I have no idea about the other.

    I found the following
    https://docs.unity3d.com/Packages/c...tions.JobNativeMultiHashMapVisitKeyValue.html
    but it doesn't seem to work when I try it, visual studio can't find the reference. I'm using the Jobs and Burst package in an URP project.

    EDIT:
    Found https://forum.unity.com/threads/rep...ivemultihashmapmergedsharedkeyindices.882019/
    which mentions it's been deprecated. Please delete this thread.
     
    Last edited: Sep 15, 2021