com.unity.xr.arfoundation 4.2.0-pre.2

com.unity.xr.arfoundation

Notes: processedReleased March 9, 2021

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2020.2

🔄 Changes

  • Add description for occlusion on the main AR Foundation manual page, and edit the human segmentations description.
  • The [ARSession](xref:UnityEngine.XR.ARFoundation.ARSession) optionally sets the application's `vSyncCount` and `targetFrameRate` (see [matchFrameRateRequested](xref:UnityEngine.XR.ARFoundation.ARSession.matchFrameRateRequested)). In earlier versions, the original values were not restored when the ARSession was disabled. The behavior has changed so that the original values are restored when the ARSession disabled if the frame rate was set while the ARSession was enabled.
  • Update XR Plug-in Management dependency to 4.0.

🔧 Bug Fixes

  • Added missing icon to the [AROcclusionManager](xref:UnityEngine.XR.AROcclusionManager).
  • Replace uses of [PostProcessScene](xref:UnityEditor.Callbacks.PostProcessSceneAttribute) attribute with [IProcessSceneWithReport](xref:UnityEditor.Build.IProcessSceneWithReport) callback mechanism. This prevents scene hashes from changing when adding the AR Foundation package.
  • Added MODULE\_URP\_10\_OR\_NEWER and updated use of obsolete `ScriptableRenderer.cameraDepth` API to fix issues related to API upgrades that occur in builds with URP 10.0 and above