com.unity.collections 1.0.0-pre.3
Notes: processedReleased July 6, 2021
Unity Compatibility
Minimum Unity: 2020.3 (0f1)
Package Dependencies
✨ Features
- `Native/UnsafeList*.RemoveRange*` with index/count arguments.
- Upgraded to burst 1.5.2
- `UnsafeText` added.
📈 Improvements
- Burst compatibility tests now treat any explicit uses of `[BurstCompatible]` on private methods as an error (as opposed to silently ignoring) to avoid giving the impression that private methods are being tested.
- `NativeList` generic constraint `T` is changed from `struct` to `unmanaged` to match `UnsafeList`. User code can be simply fixed by changing `struct` to `unmanaged` when using `NativeList` inside generic container.
- `NativeHashMap.GetBucketData` renamed to `NativeHashMap.GetUnsafeBucketData`
- Update the package to 1.0.0
- `HeapString` renamed to `NativeText`. `NativeText` is based on `UnsafeText`.
- ### Deprecated
- Generated `FixedList[Byte/Int/Float][32/64/128/256/512]` are deprecated, and replaced with generics `FixedList[32/64/128/256/512]`.
- `UnsafeMultiHashMap.GetUniqueKeyArray` replaced with extension method `UnsafeMultiHashMap.GetUniqueKeyValueNBC` from `Unity.Collections.NotBurstCompatible` namespace.
- `NativeMultiHashMap.GetUniqueKeyArray` replaced with extension method `NativeMultiHashMap.GetUniqueKeyValueNBC` from `Unity.Collections.NotBurstCompatible` namespace.
- `NativeList.ToArray` replaced with extension method `NativeList.ToArrayNBC` from `Unity.Collections.NotBurstCompatible`
- `NativeList.CopyFrom` replaced with extension method `NativeList.CopyFromNBC` from `Unity.Collections.NotBurstCompatible` namespace.
- `UnsafeAppendBuffer.Add` replaced with extension method`UnsafeAppendBuffer.AddNBC` from `Unity.Collections.LowLevel.Unsafe.NotBurstCompatible` namespace.
- `UnsafeAppendBuffer.ToBytes` replaced with extension method `UnsafeAppendBuffer.ToBytesNBC` from `Unity.Collections.LowLevel.Unsafe.NotBurstCompatible` namespace.
- `UnsafeAppendBuffer.Reader.ReadNext` replaced with extension method `UnsafeAppendBuffer.Reader.ReadNextNBC` from `Unity.Collections.LowLevel.Unsafe.NotBurstCompatible` namespace.
- `Native/UnsafeList*.RemoveRange*WithBeginEnd` methods with begin/end arguments in favor of `Native/UnsafeList*.RemoveRange*` with index/count arguments.
- `UnsafeList` and replaced it with `UnsafeList`.
- VirtualMemoryUtility.
⚡ API Changes
- `NativeQueue.PersistentMemoryBlockCount` and `NativeQueue.MemoryBlockSize` are now internal APIs.
🔧 Bug Fixes
- Burst compatibility tests will now ignore any method containing a '$' in the name, which can be generated by the Burst direct call IL post processor.
- xxHash3 is initialized after assembly load to avoid an exception that could be thrown if xxHash3 is accessed for the first time on a thread other than the main thread.
- ### Security
