com.unity.xr.arfoundation 6.0.1

com.unity.xr.arfoundation

Source docs
Notes: processedReleased April 3, 2024

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 6000.0

Package Dependencies

Features

  • Added AR Foundation API definitions for persistent anchors. Provider plug-ins can implement these methods, which allow you to save anchors during an AR session and re-load them during subsequent sessions:
  • - [ARAnchorManager.TrySaveAnchorAsync](xref:UnityEngine.XR.ARFoundation.ARAnchorManager.TrySaveAnchorAsync\(UnityEngine.XR.ARSubsystems.TrackableId,System.Threading.CancellationToken\))
  • - [ARAnchorManager.TryLoadAnchorAsync](xref:UnityEngine.XR.ARFoundation.ARAnchorManager.TryLoadAnchorAsync\(UnityEngine.XR.ARSubsystems.SerializableGuid,System.Threading.CancellationToken\))
  • - [ARAnchorManager.TryEraseAnchorAsync](xref:UnityEngine.XR.ARFoundation.ARAnchorManager.TryEraseAnchorAsync\(UnityEngine.XR.ARSubsystems.SerializableGuid,System.Threading.CancellationToken\))
  • - [ARAnchorManager.TryGetSavedAnchorIdsAsync](xref:UnityEngine.XR.ARFoundation.ARAnchorManager.TryGetSavedAnchorIdsAsync\(Unity.Collections.Allocator,System.Threading.CancellationToken\))
  • Added an implicit conversion operator between [TrackableId](xref:UnityEngine.XR.ARSubsystems.TrackableId) and [SerializableGuid](xref:UnityEngine.XR.ARSubsystems.SerializableGuid).
  • Added a constructor to [SerializableGuid](xref:UnityEngine.XR.ARSubsystems.SerializableGuid) allowing the creation of `SerializableGuid`s with a `System.Guid`.
  • Added [ARAnchorManager.TryRemoveAnchor](xref:UnityEngine.XR.ARFoundation.TryRemoveAnchor) API for removing anchors. You can either use this new method or disable the `ARAnchor` component to remove an anchor.
  • Added XR Simulation's `SimulationCameraPoseProvider` as a public component.

📈 Improvements

  • Changed documentation to indicate that Meshing is now a supported feature in the Unity OpenXR: Meta provider plug-in.
  • Changed the behavior of `ARMeshManager` to recalculate normals on a mesh if normals were requested and the provider did not calculate them.
  • Changed the minimum Unity version from 2023.3 to 6000.0, reflecting the new version number of Unity 6. Refer to the official Unity 6 New Naming Convention announcement for more information.

🔧 Bug Fixes

  • Fixed issue ARFB-421 which caused `ARMeshManager` to crash the Editor in XR Simulation when its **Normals** property was not enabled.
  • Fixed issue ARFB-380 where UI toolkit elements disappeared after one frame when running an XR scene with a user-facing camera on Android devices.
  • Fixed an issue where disabling the `AROcclusionManager` component in XR Simulation would not stop the simulation background shader from sampling the depth texture.
  • Fixed an issue where XR Simulation camera pose data could leak between multiple AR sessions.
  • Corrected a previous fix for an issue where the tvOS build target would have compile errors in `Simulation.InputLayoutLoader`.