public void Try() { NativeDictionary <int, int> nativeDictionary = new NativeDictionary <int, int>(50, Allocator.Temp, (i, j) => i == j); nativeDictionary.Add(1, 3); nativeDictionary.Add(2, 4); int result; nativeDictionary.Get(1, out result); Debug.Log(result); nativeDictionary.Get(2, out result); Debug.Log(result); nativeDictionary.Get(3, out result); Debug.Log(result); nativeDictionary.Dispose(); }