Releases: needle-mirror/com.unity.xr.arfoundation
Releases · needle-mirror/com.unity.xr.arfoundation
5.1.5
[5.1.5] - 2024-05-31
No changes
6.0.2
[6.0.2] - 2024-05-22
Fixed
- Fixed an issue where the Build AssetBundles window (Assets > AR Foundation > Build AssetBundles) threw a
NullReferenceException
if no AssetBundles were built. - Fixed an issue where XR Simulation's
CameraTextureProvider
component could throw aMissingReferenceException
when an AR scene is unloaded. - Fixed XR Simulation components so they now behave correctly if you disable the Reload Domain option in Configurable Enter Play Mode settings.
- Fixed the native XR Simulation Input provider so that it now explicitly sets Device mode as its only supported Tracking Origin Mode. The XR Origin component will always use Device mode as its Tracking Origin Mode and apply the XROrigin.CameraYOffset value.
5.1.4
[5.1.4] - 2024-04-29
Fixed
- Fixed an issue where the AR Debug Menu script would not spawn a Point Cloud prefab.
- Fixed an issue where the tvOS build target would have compile errors in
Simulation.InputLayoutLoader
. - Fixed issue ARFB-421 which caused
ARMeshManager
to crash the Editor in XR Simulation when its Normals property was not enabled. - Fixed an issue where XR Simulation camera pose data could leak between multiple AR sessions.
6.0.1
[6.0.1] - 2024-04-01
Added
- 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
- ARAnchorManager.TryLoadAnchorAsync
- ARAnchorManager.TryEraseAnchorAsync
- ARAnchorManager.TryGetSavedAnchorIdsAsync
- Added an implicit conversion operator between TrackableId and SerializableGuid.
- Added a constructor to SerializableGuid allowing the creation of
SerializableGuid
s with aSystem.Guid
. - Added ARAnchorManager.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.
Changed
- 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.
Fixed
- 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
.
6.0.0-pre.8
[6.0.0-pre.8] - 2024-03-19
Changed
- Rebuilt simulation plugin for linux on Ubuntu 20.04 (glibc-2.31).
Fixed
- Fixed an issue where the AR Debug Menu script would not spawn a Point Cloud prefab.
5.1.3
[5.1.3] - 2024-03-12
Fixed
- Fixed an issue where destroying and recreating the
SimulationSessionSubsystem
could result in the creation of aSimulationMeshSubsystem
instance, even if theXRLoader
did not initially create it. - Fixed an issue where the TvOS build target would have compile errors in
Simulation.InputLayoutLoader
.
6.0.0-pre.7
[6.0.0-pre.7] - 2024-03-11
Added
- Added an API for provider plug-ins to implement the detection and tracking of 3D bounding boxes. Refer to Bounding box detection for more information.
Changed
- Changed XRResultStatus to more easily allow for a wide range of platforms to use the type:
- Renamed the
value
property tonativeStatusCode
. - Added a cross-platform
statusCode
property and corresponding constructors. - Removed the implicit conversion operators between
int
andXRResultStatus
. Use a constructor instead.
- Renamed the
Fixed
- Fixed an issue where destroying and recreating the
SimulationSessionSubsystem
could result in the creation of aSimulationMeshSubsystem
instance, even if theXRLoader
did not initially create it. - Fixed an issue where the TvOS build target would have compile errors in
Simulation.InputLayoutLoader
.
6.0.0-pre.6
[6.0.0-pre.6] - 2024-02-08
Added
- Added XRResultStatus, a new way for AR Foundation to provide status information for completed operations. Provider plug-ins can add extension methods to this type to give users access to platform-specific error codes and success codes.
Changed
- Changed
SimulationPlaneSubsystem
to respect the currently setPlaneDetectionMode
, detecting updates only from planes that match the current mode. - Upgraded
com.unity.xr.core-utils
dependency version from2.2.3
to2.3.0
. - Changed ARTrackablesChangedEventArgs<TTrackable>:
added
,updated
, andremoved
now return ReadOnlyList instead ofIReadOnlyCollection
, removing an unnecessary heap allocation when each collection is enumerated.removed
now usesKeyValuePair<TrackableId, TTrackable>
instead ofTTrackable
, allowingARTrackableManager
to send notifications of removed trackables even if you already destroyed them (for example, by destroying anARAnchor
).
- Changed Result<T>:
- Removed
bool TryGetResult(out T)
and the constructor that took(bool, T)
as parameters. - Added
status
,value
, and a constructor that takes(XRResultStatus, T)
as parameters.
- Removed
- Updated Universal Render Pipeline documentation to reflect recent changes to URP concepts and setup.
- Changed minimum Unity Editor version to
2023.3
.
Fixed
- Fixed an issue where calling
ARSession.Reset
could cause XR Simulation plane detection to fail to discover planes for a period of time before resuming. - Fixed an issue where the
SimulationEnvironmentProbeSubsystem
could destroy environment probe GameObjects when they were removed, even if their Destroy on Removal property was set to false. - Fixed an issue where
EditorAnalytics
would throw obsolete warnings during project import in Unity 2023.2 or newer. - Fixed an issue in XR Simulation where a command buffer for the Built-in Render Pipeline was added to a camera even when URP was active.
5.1.2
[5.1.2] - 2024-01-22
Changed
- Changed the Use reference image libraries with AssetBundles section of the Image tracking documentation to mention that
ARBuildProcessor.PreprocessBuild
must be called before building AssetBundles. - Changed the Plane detection documentation to contain more information and better organization.
- Changed the AR Foundation documentation manual to include platform support information for Apple visionOS.
Fixed
- Fixed issue in XR Simulation where a warning was logged stating that saving had no effect because of a missing FilePathAttribute.
- Fixed an issue where
SimulatedAnchor
components could incorrectly affect XR Simulation when used in scenes other than the XR simulation environment. - Fixed an issue where disabling and re-enabling the ARDebugMenu component would cause the origin toggle to become unresponsive.
- Fixed an issue where
SimulationPlaneSubsystem
would not respect the currently setPlaneDetectionMode
, detecting updates only from planes that match the current mode. - Fixed an issue where calling
ARSession.Reset
could cause XR Simulation plane detection to fail to discover planes for a period of time before resuming.
4.2.10
[4.2.10] - 2024-01-12
Changed
- Changed the Use reference image libraries with AssetBundles section of the Image tracking documentation to mention that
ARBuildProcessor.PreprocessBuild
must be called before building AssetBundles.