com.unity.xr.arfoundation 6.7.0-pre.1

Preview

com.unity.xr.arfoundation

Source docs
Notes: processedReleased September 23, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 6000.0

Package Dependencies

Features

  • Added the following APIs to implement OpenXR support for image tracking:
  • - [XRImageTrackingSubsystem.TryCreateRuntimeLibraryAsync](xref:UnityEngine.XR.ARSubsystems.XRImageTrackingSubsystem.TryCreateRuntimeLibraryAsync(UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary,System.Threading.CancellationToken)), an asynchronous method for creating runtime reference image libraries. This supports providers whose runtime library creation completes asynchronously.
  • - [ARTrackedImageManager.TrySetReferenceLibraryAsync](xref:UnityEngine.XR.ARFoundation.ARTrackedImageManager.TrySetReferenceLibraryAsync(UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary,System.Threading.CancellationToken)) and [TrySetReferenceLibrary](xref:UnityEngine.XR.ARFoundation.ARTrackedImageManager.TrySetReferenceLibrary(UnityEngine.XR.ARSubsystems.RuntimeReferenceImageLibrary)), which create or assign a reference image library on the manager.
  • - [XRImageTrackingSubsystemDescriptor.supportsRuntimeLibrary](xref:UnityEngine.XR.ARSubsystems.XRImageTrackingSubsystemDescriptor.supportsRuntimeLibrary) (and the corresponding `Cinfo.supportsRuntimeLibraryDelegate`), which a provider sets to report whether it supports image libraries that can be instantiated at runtime.
  • Added the following APIs for authoring reference images and reference image libraries:
  • - [XRReferenceImageBuilder](xref:UnityEngine.XR.ARSubsystems.XRReferenceImageBuilder) for constructing [XRReferenceImage](xref:UnityEngine.XR.ARSubsystems.XRReferenceImage) instances in code, which enables you to assemble reference image libraries at runtime.
  • - The [MovingImageType](xref:UnityEngine.XR.ARSubsystems.MovingImageType) enum and corresponding `movingImageType` support on [XRReferenceImage](xref:UnityEngine.XR.ARSubsystems.XRReferenceImage), [XRReferenceImageLibrary](xref:UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary), and [XRReferenceImageBuilder](xref:UnityEngine.XR.ARSubsystems.XRReferenceImageBuilder), so you can mark a reference image as static or dynamic.
  • Added `XRSubsystemStartOptions.InstallSoftwareIfNeeded`, a start option that requests a subsystem check whether required software is installed on the device and attempts to install it, if needed, before starting.
  • Added `TrackableTypeExtensions`, a new static class with an `IsPlane` extension method that tests whether a `TrackableType` value includes any plane sub-type, and an `allPlaneTypes` property that returns the combined mask of all plane sub-types.
  • Added `XRResultStatus.StatusCode.LimitReached` as a new error code that AR Foundation methods can return.
  • Added `XRPlaneSubsystemDescriptor.supportsPlaneSubsumption`, to allow a platform to indicate whether it will perform plane subsumption.
  • Deprecated and replaced the following APIs, as necessary to implement OpenXR support for image tracking:
  • - `XRImageTrackingSubsystem.CreateRuntimeLibrary` with [TryCreateRuntimeLibraryAsync](xref:UnityEngine.XR.ARSubsystems.XRImageTrackingSubsystem.TryCreateRuntimeLibraryAsync(UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary,System.Threading.CancellationToken))
  • - `ARTrackedImageManager.referenceLibrary` setter with [TrySetReferenceLibraryAsync](xref:UnityEngine.XR.ARFoundation.ARTrackedImageManager.TrySetReferenceLibraryAsync(UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary,System.Threading.CancellationToken)) or [TrySetReferenceLibrary](xref:UnityEngine.XR.ARFoundation.ARTrackedImageManager.TrySetReferenceLibrary(UnityEngine.XR.ARSubsystems.RuntimeReferenceImageLibrary))
  • - `ARTrackedImageManager.CreateRuntimeLibrary` with [TryCreateRuntimeLibraryAsync](xref:UnityEngine.XR.ARFoundation.ARTrackedImageManager.TryCreateRuntimeLibraryAsync(UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary,System.Threading.CancellationToken))
  • Deprecated the following APIs. Pass [XRSubsystemStartOptions.InstallSoftwareIfNeeded](xref:UnityEngine.XR.ARSubsystems.XRSubsystemStartOptions.InstallSoftwareIfNeeded) to [TryStartAsync](xref:UnityEngine.XR.ARSubsystems.XRSubsystem`3.TryStartAsync*) instead:
  • - \`ARSession.C