うにてぃブログ

UnityやUnreal Engineの記事を書いていきます

【Unity】error CS0246: The type or namespace name 'NativeMultiHashMap<,>' could not be found (are you missing a using directive or an assembly reference?)

error CS0246: The type or namespace name 'NativeMultiHashMap<,>' could not be found (are you missing a using directive or an assembly reference?)

Unity2021 で Unity.Collections の NativeMultiHashMap を利用している状態で、Unity2022 にアップデートすると上記のエラーが発生する

これは Unity Collections '[2.1.0-exp.4] - 2022-08-05' で 'NativeMultiHashMap' 等の名前が変更になったためである

Renamed UnsafeHashSet to UnsafeParallelHashSet.
Renamed NativeHashSet to NativeParallelHashSet.
Renamed UnsafeHashMap to UnsafeParallelHashMap.
Renamed NativeHashMap to NativeParallelHashMap.
Renamed UnsafeMultiHashMap to UnsafeParallelMultiHashMap.
Renamed NativeMultiHashMap to NativeParallelMultiHashMap.