Search Unity

How to use NativeMultiHashMap?

Discussion in 'Entity Component System' started by jRocket, Aug 4, 2021.

  1. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    I have created a MultiHashMap, added a key and single value to it. Now, I need to add additional values for the given key.

    The docs for Add() state:
    How then, do I add additional items for a key that already exists?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,769
    Are you sure you didn't search doc for NativeHashMap, instead NativeMultiHashMap?
     
    jRocket likes this.
  3. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700