com.unity.collections 2.1.0-pre.11
Source docsNotes: processedReleased February 16, 2023
Unity Compatibility
Minimum Unity: 2022.2 (2f1)
Package Dependencies
- com.unity.burst (1.8.2)
- com.unity.modules.unityanalytics (1.0.0)
- com.unity.nuget.mono-cecil (1.11.4)
- com.unity.test-framework (1.3.2)
✨ Features
- Ability to resize `Unsafe/NativeBitArray` with `Resize`, `SetCapacity`, `TrimExcess` methods.
- `.Substring` method to `FixedStringN`, and `NativeText`.
- `NativeRingQueue`.
- `CollectionHelper.Dispose` to dispose a NativeArray without Allocator input parameter.
📈 Improvements
- Reviewed all safety checks and made many of them supported with `UNITY_DOTS_DEBUG` in addition to `ENABLE_UNITY_COLLECTIONS_CHECKS`
- Optimize `RewindableAllocator`.
- Underlying algorithm for `*HashMap/Set` containters to improve performance.
🔧 Bug Fixes
- Code generation responsible for early initialization of JobReflectionData could previously emit enormous amounts of code that could dramatically increase IL2CPP build times. We now produce the minimal amount of code necessary and no longer impact IL2CPP compilation times.
- Removed unnecessary test and documentation samples assemblies from always being loaded in projects.
- `NativeHashSet.ToNativeArray(allocator)` now works with custom allocators
