What's new in version 6.1
Added
- Added
StatusCode.ProviderUninitialized
as an error code to represent an uninitialized state. Methods that return XRResultStatus can use this more specific error code instead ofStatusCode.UnknownError
when the provider is uninitialized. - Added SupportedUtils for easier conversion between the types
Supported
andbool
. - Added three new APIs to the
XRSessionSubsystem
and provider class which can be extended by AR session providers to handle Universal Render Pipeline rendering events signaled by theARCommandBufferSupportRendererFeature
when it is included in the renderer features list for theUniversal Renderer
asset. - Added a new
ARCommandBufferSupportRendererFeature
which calls the newly exposedXRSessionSubsystem
APIs for integration into Universal Render Pipeline command buffer execution. Refer to Universal Render Pipeline for more information. - Added support for simulated bounding box detection to XR Environment via the SimulatedBoundingBox component.
- Added an API that allows you to turn on the device's camera torch (flash). Refer to Camera torch mode (flash) for more information
- Added support for stereo occlusion, enabling HMD providers to implement the XR occlusion subsystem:
- Added XRTextureType enum with extension methods to convert from TextureDimension.
- Added XRTextureDescriptor.textureType property to get a texture descriptor's type.
- Added the following structs to represent data used for occlusion: XRFov, XRNearFarPlanes, XROcclusionFrame, and ARGpuTexture.
- Added the following members to XROcclusionSubsystem:
depthViewProjectionMatricesPropertyId
andTryGetFrame(Allocator, out XROcclusionFrame)
. - Added more data to AROcclusionFrameEventArgs.
- Added the ARShaderOcclusion component to write depth textures to global shader memory.
Changed
- Changed BoundingBoxClassifications to add additional labels provided by Apple RoomPlan.
- Changed the Simulation Environment to be visibile in the scene hierarchy.
Deprecated
- Deprecated and replaced the following APIs:
XRTextureDescriptor.dimension
toXRTextureDescriptor.textureType
XRTextureDescriptor
constructor withdimension
parameter toXRTextureType
parameter.AROcclusionFrameEventArgs.propertyNameIds
toAROcclusionFrameEventArgs.gpuTextures
.AROcclusionFrameEventArgs.textures
toAROcclusionFrameEventArgs.gpuTextures
.AROcclusionManager.environmentDepthConfidenceTexture
toAROcclusionManager.TryGetEnvironmentDepthConfidenceTexture
.AROcclusionManager.environmentDepthTexture
toAROcclusionManager.TryGetEnvironmentDepthTexture
.
For a full list of changes in this version including backwards-compatible bugfixes, refer to the package changelog.