ARCore Extensions for Unity's AR Foundation supports both
[version 4](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/manual/index.html)
and
[version 5](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/index.html)
of AR Foundation. To upgrade your existing AR project to AR Foundation 5.x from
AR Foundation 4.x, follow these steps:

1. Only in **Unity 2021.x** or older:   

   Some Unity packages are [bound to specific Unity Editor versions](https://docs.unity3d.com/Manual/pack-safe.html).
   You may need to edit the [Package manifest](https://docs.unity3d.com/Manual/upm-manifestPkg.html)
   in your Unity project to update to AR Foundation 5.x in certain Unity Editor
   versions. For more information, see [Access AR Foundation 5.0 in Unity
   2021](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/manual/project-setup/edit-your-project-manifest.html).

   Ensure that the **Packages/manifest.json** contains these versions for the
   following packages:

       "dependencies": {
         -- other dependencies --
         "com.google.ar.core.arfoundation.extensions": "https://github.com/google-ar/arcore-unity-extensions.git#arf5",
         "com.unity.xr.arcore": "5.0.5",
         "com.unity.xr.arfoundation": "5.0.5",
         "com.unity.xr.arkit": "5.0.5",
         -- other dependencies --
       }

2. AR Foundation 5.x requires the [Input System package](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/manual/index.html)
   due to a dependency on [`TrackedPoseDriver`](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/changelog/CHANGELOG.html#500-pre6---2021-11-17).
   The ARCore Extensions Sample Scenes require the legacy input module.

   To support both the Input System package and the older Input Manager,
   in **Project Settings \> Player \> Other Settings** set **Active Input
   Handling** to **Both**.
3. Follow other steps in Unity's AR Foundation
   [upgrade and migration guides](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/version-history/migration-guide-5-x.html).