Solvedarfoundation samples Errors with AR-Foundation samples

Hello,

I have seen this error before but I dont seem to be able to get rid of it.

I have tried several kind of package combinations.

This is what works better:
AR Foundation 2.1.4
AR Subsystems 3
ARCore XR Plugin 3.0.1
ARKit XR Plugin 3.0.1
5 errors

This is the average
AR Foundation 3.0.1
AR Subsystems 3
ARCore XR Plugin 3.0.1
ARKit XR Plugin 3.0.1
13 Errors

Some of the logs:
Failed to load 'C:/Users/Totoro-Ryzen/Documents/UnityProjects/Anansi Demo AR/Assets/arfoundation-samples/ProjectSettings/XRSettings.asset'. File may be corrupted or was serialized with a newer version of Unity.
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Library\PackageCache\com.unity.xr.arfoundation@2.1.4\Runtime\AR\ARReferencePointManager.cs(24,9): error CS0246: The type or namespace name 'XRReferencePointSubsystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.xr.arfoundation@2.1.4\Runtime\AR\ARReferencePointManager.cs(25,9): error CS0246: The type or namespace name 'XRReferencePointSubsystemDescriptor' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.xr.arfoundation@2.1.4\Runtime\AR\ARReferencePointManager.cs(26,9): error CS0246: The type or namespace name 'XRReferencePoint' could not be found (are you missing a using directive or an assembly reference?)

ETC.ETC.

Am I missing a library or something?

Thanks in advance for your help

25 Answers

✔️Accepted Answer

Okay so the issue with with 3.0.1 is that the samples contain reference to the HumanBodySubsystem for ARKit. The feature was in our preview package but we felt that it wasn't production ready so we decided to remove it from the verified package. You can update to the following packages to fix the errors.

ARFoundation: 3.1.0-preview.3
ARSubsystems 3.1.0-preview.2
ARKit: 3.1.0-preview.2

Similarly you can remove the relevant scripts and scenes from your project should you not need Occlusion and HumanBody feature sets. ARCore and ARKit Face Tracking should be unaffected by this issue but you may update them if you would like.

Other Answers:

@JERINPWILSON drop down the AR Foundation in the package manager see all versions.

Related Issues:

5
arfoundation samples HumanBodyTracking3D - not working
Packages have been updated Hi while trying to build the HumanBodyTracking3D sample scene ...
4
arfoundation samples Errors with AR-Foundation samples
Okay so the issue with with 3.0.1 is that the samples contain reference to the HumanBodySubsystem fo...