This is the error that I am facing while using XROrigin since ARSessionOrigin is depreciated .
Library\PackageCache\com.google.ar.core.arfoundation.extensions@f995c62e2b92\Runtime\Scripts\ARCoreExtensions.cs(69,16): error CS0246: The type or namespace name ‘XROrigin’ could not be found (are you missing a using directive or an assembly reference?)
Have added all the necessary packages like:
XR Interaction Toolkit
XR Core Utilities
what should I do?
I am stuck here
Hey @sanskarrathore1553, sorry you are stuck. The XROrigin class is definitely in the Unity.XR.CoreUtils namespace. Can you check what version of XR Core Utilities you have installed?
If you bump XR Interaction Toolkit to a newer version (2.6.3 recently released), it will automatically update CoreUtils to a minimum version required to use the XROrigin.
It sounds like you have a project that is running AR Foundation 4. You need AR Foundation 5 to use XROrigin with AR Foundation components. Google has some instructions for upgrading their extensions to AR Foundation 5 here: Update to AR Foundation version 5.x (Beta) | ARCore | Google for Developers
There are also upgrade guides by Unity: