# 1. Packages and a Mobile AR Track
Part of [[AR Foundation]]. Next: [[2. AR Session and XR Origin]].
## 1.1 This is not Quest
[[VR]] and [[Meta Quest 2]] are a headset / OpenXR track. Official 6.5.1 AR Session manual: on **OpenXR** platforms (it names Meta Quest and Android XR), AR Foundation **cannot** create or destroy the AR session, and enabling or disabling `ARSession` has **no effect** on enabling or disabling AR. This course targets **ARKit (iOS)** and **ARCore (Android)** phones and tablets. Do not "just add AR Foundation" to a Quest project and expect the mobile Origin setup to be the same lab.
## 1.2 Install (confirm menus in 6.5.1)
1. Install **AR Foundation** `com.unity.xr.arfoundation` — official 6000.5 page: **6.5.1** released; 6.6.x and 6.7.x also listed. Pin a line and stay there for the lab.
2. Install the provider you will sideload to: **Apple ARKit XR Plugin** `com.unity.xr.arkit` and/or **Google ARCore XR Plugin** `com.unity.xr.arcore` (both **6.5.1** released for 6000.5). Keep the provider version in the **same 6.5 / 6.6 / 6.7 line** as AR Foundation.
3. Enable the provider in **XR Plug-in Management** (Project Settings) for the iOS and/or Android tabs. Confirm the checkbox labels in your Editor; this series does not invent a Plug-in Management package version.
4. Use an **Android / iOS Build Profile** from [[1. Build Profiles]]. Camera and AR permissions come from the platform Player Settings / official provider install guide for 6.5.1 — follow that page rather than a remembered 2019 manifest snippet.
Input: this project's Input System should already be the [[Input System]] package (1.20.x). Touch patterns are in [[Mobile Input and Touch]]. The Device Simulator does **not** replace a physical AR session (and it does not simulate a phone's ARCore/ARKit runtime).
## 1.3 Out of scope
- Face tracking, meshing, environment probes, occlusion as assignments (some appear on official ARKit/ARCore feature lists; they are a later lab).
- visionOS / PolySpatial.
- An invented **XR Simulation** package number. If you want Editor simulation, confirm the package on the current 6000.5 list and follow *its* manual. This series still requires a **device** pass for the assignment.
## 1.4 Exercise
Install the packages, enable ARKit and/or ARCore in XR Plug-in Management, and write down the exact versions Package Manager resolved. If they are 6.6 or 6.7, you will re-check the 6.5.1 menus used in the next parts.
## Sources
- https://docs.unity3d.com/6000.5/Documentation/Manual/com.unity.xr.arfoundation.html
- Install AR Foundation (use the docs line that matches your version; 6.5 line: https://docs.unity3d.com/Packages/
[email protected]/manual/project-setup/install-arfoundation.html)