com.unity.collections 2.1.0-pre.11

com.unity.collections

Source docs
Notes: processedReleased February 16, 2023

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2022.2 (2f1)

Package Dependencies

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