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

Preview

com.unity.xr.arfoundation

Source docs
Notes: processedReleased May 27, 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 a new [XRSubsystem](xref:UnityEngine.XR.ARSubsystems.XRSubsystem`3) base class that enables providers to incorporate permissions and asynchronous resource creation into their `Start` implementation.
  • Added a `ToString` override for `ARMarker`.
  • Added support for Apple visionOS to the Build AssetBundles window (**Assets** > **AR Foundation** > **Build AssetBundles**).
  • Added [XRCameraSubsystem.requiresPremultipliedBackgroundColor](xref:UnityEngine.XR.ARSubsystems.XRCameraSubsystem.requiresPremultipliedBackgroundColor) to support runtimes that require premultiplying the background color with the background color alpha.
  • Added `XRRaycastSubsystemDescriptor.Cinfo.supportedTrackableTypesDelegate`, which allows a raycast provider to determine at runtime which trackable types it supports.

Improvements

  • Changed `SubsystemLifecycleManager.Start` logic to be compatible with the new `XRSubsystem` base class.
  • Reverted a previous change to `SubsystemLifecycleManager.OnEnable`, which allowed the manager component to poll for subsystems that weren't synchronously available. With the addition of `XRSubsystem`, all providers are now expected to create subsystems synchronously during `XRLoader.Initialize`.
  • Changed the minimum dependency version of XR Core Utils from 2.6.0-pre.2 to 2.6.0.
  • Changed diagnostic gates that previously used the deprecated `DEVELOPMENT_BUILD` script define to use `UNITY_ENABLE_CHECKS` on Unity 6.6 or newer (where the new Managed Code Variant Player Setting controls diagnostic compilation), with a runtime `Debug.isDebugBuild` fallback on older Unity versions. There is no public API change; on Unity 6.6+ the trackable-change validators and AR Foundation diagnostic warnings now compile in for Player builds with the Debug or Checked Managed Code Variant.
  • Deprecated `XRPlaneSubsystem.CreateOrResizeNativeArrayIfNecessary` and `XRPlaneSubsystem.Provider.CreateOrResizeNativeArrayIfNecessary`. Use [NativeArrayUtils](xref:Unity.XR.CoreUtils.NativeArrayUtils) instead.
  • Deprecated `XRRaycastSubsystemDescriptor.Cinfo.supportedTrackableTypes`. Use `XRRaycastSubsystemDescriptor.Cinfo.supportedTrackableTypesDelegate` instead.

API Changes

  • Removed unnecessary color attachment in "Copy Simulation Camera" pass.

Bug Fixes

  • Fixed `ARCameraManager` so that the camera's background color is pre-multiplied by its alpha before clearing the framebuffer on platforms that require premultiplied alpha compositing. This prevents non-black background colors from tinting the passthrough image when alpha is zero.
  • Fixed `ARTrackableManager` so that it only destroys trackables upon removal if `ARTrackable.destroyOnRemoval` is true.
  • Fixed `ARTrackableManager` so that `ARAnchor.pending` is set to false when the anchor is added. (UUM-136565)
  • Fixed a bug where a duplicate `ARAnchor` GameObject is no longer created for anchors that were added by the user creating the component at runtime.
  • Fixed `SimulatedTrackedImage` so that modifying a duplicated component's image reference doesn't visually change the original component's image. (UUM-135143)
  • Fixed XR Simulation internal logic so that the Editor no longer unexpectedly quits when unloading and reloading an AR scene without deinitializing the XR Loader. (UUM-137252).
  • Fixed the custom Editor for XR Simulation shaders so that changes to color values are applied correctly in Unity 6.3 or newer.
  • Fixed RenderGraph releasing depth texture from `SimulationCameraTextureReadbackPass` before the pass is finished, resolving occlusion issues and z-fighting in XR Simulation Environments.
  • Fixed usages of API