com.unity.xr.arfoundation 6.0.0-pre.6

com.unity.xr.arfoundation

Source docs
Notes: processedReleased February 14, 2024

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2023.3

Package Dependencies

Features

  • Added [XRResultStatus](xref:UnityEngine.XR.ARSubsystems.XRResultStatus), a new way for AR Foundation to provide status information for completed operations. Provider plug-ins can add extension methods to this type to give users access to platform-specific error codes and success codes.

📈 Improvements

  • Changed `SimulationPlaneSubsystem` to respect the currently set `PlaneDetectionMode`, detecting updates only from planes that match the current mode.
  • Upgraded `com.unity.xr.core-utils` dependency version from `2.2.3` to `2.3.0`.
  • Changed [ARTrackablesChangedEventArgs\](xref:UnityEngine.XR.ARFoundation.ARTrackablesChangedEventArgs`1):
  • - `added`, `updated`, and `removed` now return [ReadOnlyList](xref:Unity.XR.CoreUtils.Collections.ReadOnlyList`1) instead of `IReadOnlyCollection`, removing an unnecessary heap allocation when each collection is enumerated.
  • - `removed` now uses `KeyValuePair` instead of `TTrackable`, allowing `ARTrackableManager` to send notifications of removed trackables even if you already destroyed them (for example, by destroying an `ARAnchor`).
  • Changed [Result\](xref:UnityEngine.XR.ARSubsystems.Result`1):
  • - Removed `bool TryGetResult(out T)` and the constructor that took `(bool, T)` as parameters.
  • - Added `status`, `value`, and a constructor that takes `(XRResultStatus, T)` as parameters.
  • Updated Universal Render Pipeline documentation to reflect recent changes to URP concepts and setup.
  • Changed minimum Unity Editor version to `2023.3`.

🔧 Bug Fixes

  • Fixed an issue where calling `ARSession.Reset` could cause XR Simulation plane detection to fail to discover planes for a period of time before resuming.
  • Fixed an issue where the `SimulationEnvironmentProbeSubsystem` could destroy environment probe GameObjects when they were removed, even if their **Destroy on Removal** property was set to false.
  • Fixed an issue where `EditorAnalytics` would throw obsolete warnings during project import in Unity 2023.2 or newer.
  • Fixed an issue in XR Simulation where a command buffer for the Built-in Render Pipeline was added to a camera even when URP was active.