Skip to content

Android XR Unity Extensions v1.5.0

Latest

Choose a tag to compare

@lukehopkinsdev lukehopkinsdev released this 27 Oct 20:43

What's New in Android XR Extensions for Unity v1.5.0

New Features & APIs

  • Android XR Spatial Entities Feature Set:
    • Groups Spatial Entity framework features; can be used standalone or alongside com.unity.xr.spatialentities-openxr (6.6.2). Includes a new SpatialEntities sample.
    • Spatial Entities (Extensions): Bounding Box: Added 3D bounding box detection support using the Spatial Entity framework.
    • Spatial Entities (Extensions): Shareable Anchors: Added XRShareableAnchorSubsystem and ARShareableAnchorManager (TryAttachGeospatialAnchor, TryAttachSurfaceAnchorAsync, and SpatialShareableAnchorFeature.EnableGeospatialHost).
  • Spatial Container (XRSpatialContainerFeature):
    • Render application content within a single spatial container, with APIs to query and request bounds/visibility (TryGetState, TryGetBounds, TryRequestBoundsMode, TryRequestVisibility) and lifecycle callback events (OnSpatialContainerClosed, OnSpatialContainerBoundsChanged, OnSpatialContainerStateChanged, OnSpatialContainerVisibilityRequestDenied, OnSpatialContainerBoundsModeRequestDenied).
  • Geospatial Enhancements (XRGeospatialManager):
    • Added plane tracking configuration and status APIs for surface anchors (RequestedPlaneTracking, PlaneTrackingInUse, MaxNumberOfSurfaceAnchors).
    • Updated the Geospatial sample to demonstrate geospatial anchor usage.
  • Spatial API Level 4:
    • Added XRSpatialSdkVersions.XRSpatialApiLevel4 for the latest Android XR OTA releases.

Package Compatibility

  • Updated Dependencies:
    • OpenXR Plugin (com.unity.xr.openxr): 1.18.0
    • XR Plugin Management (com.unity.xr.management): 4.7.0
  • Verified Compatible Packages:
    • Unity OpenXR Android XR (com.unity.xr.androidxr-openxr): 1.4.1
    • AR Foundation (com.unity.xr.arfoundation): 6.6.2
    • Unity OpenXR: Spatial Entities (com.unity.xr.spatialentities-openxr): 6.6.2

Fixes & Known Issues

  • Fixed: Replaced System.Runtime.CompilerServices.Unsafe with Unity.Collections.LowLevel.Unsafe to avoid missing assembly references in projects.
  • Known Issue: In OpenXR Plugin 1.18.0, deserializing null features in OpenXR Package Settings.asset can throw a NullReferenceException in FeatureHelpersInternal.RefreshAllFeatureInfo.
    • Workaround: Manually remove null entries in OpenXR Package Settings.asset or delete and regenerate the asset.