com.unity.xr.core-utils 2.4.0

com.unity.xr.core-utils

Source docs
Notes: processedReleased November 27, 2024

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2021.3 (0f1)

Package Dependencies

  • com.unity.modules.xr (1.0.0)

Features

  • Added [ReadOnlyList\.Empty()](xref:Unity.XR.CoreUtils.Collections.ReadOnlyList`1.Empty), a static shortcut method that allows you to re-use the same empty collection throughout your app.
  • Added new collection [ReadOnlyListSpan\](xref:Unity.XR.CoreUtils.Collections.ReadOnlyListSpan) that creates a read-only wrapper around a `List` and allows for slicing similar to ReadOnlySpan.Slice.

📈 Improvements

  • Changed the minimum version of supported Unity editor to 2021.3 LTS.

API Changes

  • Removed `Type.GetFieldsWithAttribute` and `ReflectionUtils.GetFieldsWithAttribute` APIs which were only available in Unity 2019.4.

🔧 Bug Fixes

  • Improved performance of [HashSetList\](xref:Unity.XR.CoreUtils.Collections.HashSetList`1) to optimize getting `Count` and optimize `Remove` when empty.
  • Improved performance of [BindableVariableBase\](xref:Unity.XR.CoreUtils.Bindings.Variables.BindableVariableBase`1) to optimize value changes by skipping the equality check when there are no subscribers. The `SetValueWithoutNotify` method will now always return `false` when there are no subscribers.