ARFoundation Indoor Navigation Step-by-Step Process Based on Part 1 of the tutorial: “ARFoundation Indoor-Navigation – NO Cloud Anchor, NO ARPointCloud, (almost) NO Coding!” YouTube: https://youtu.be/fuHFrMZ4q_s Important note The linked YouTube page exposes the video title, but its full spoken transcript and frame-by-frame UI actions are not available through the accessible web interface. Therefore, this document is a detailed, practical reconstruction of Part 1 using the public project repository and the related technical material. It is intended as a student-friendly implementation guide rather than a verbatim transcript of the presenter’s speech. 1. What the tutorial builds ● An indoor AR navigation prototype in Unity using AR Foundation/ARCore. ● A pre-built indoor floor/map represented in Unity at approximately real-world scale. ● A blue/person indicator that follows the user’s AR camera movement. ● A Unity NavMesh used to calculate a walkable route to a selected destination. ● A Line Renderer that displays the calculated route on the indoor map. ● An AR arrow/indicator that appears in front of the user and points toward the next part of the route. ● The approach avoids Cloud Anchors and does not depend on importing AR point-cloud data. 2. Software and project preparation Step 1 – Install/open Unity Install a Unity version compatible with the AR Foundation version you plan to use. Open Unity Hub and create a 3D project. The public repository associated with the tutorial references Unity AR Foundation documentation and a completed project. Step 2 – Add AR Foundation packages Open Window → Package Manager. Add/enable AR Foundation and the platform provider required by the target device. For Android/ARCore, add the ARCore XR Plug-in. Make sure the packages are mutually compatible with the selected Unity version. Step 3 – Configure the mobile platform Open File → Build Settings and switch the project to Android if Android is the target. In Project Settings, configure the required AR/Android settings and camera permission. Use a physical ARCore-capable device for final testing. Step 4 – Create the main scene Create a new scene and save it with a clear name such as IndoorNavigation. Keep the hierarchy organised because several objects will be referenced by scripts later. 3. Set up the AR scene Step 5 – Add the AR Session In the Hierarchy, create an AR Session. This object controls the AR session lifecycle and tracking state. Step 6 – Add the AR camera/XR Origin Add the AR camera rig appropriate to your Unity/AR Foundation version (older versions may call it AR Session Origin; newer versions commonly use XR Origin). Make sure the Main Camera is the camera used for the AR view. Step 7 – Configure camera tracking Select the AR camera and locate its tracking/pose-driver configuration. The tutorial’s approach requires both position and rotation for the AR navigation view. The related technical material notes that Position Only can improve localisation, but Rotation and Position is needed when AR content must remain correctly oriented in the user’s view. Step 8 – Test the camera Build a very small test scene first. Confirm that the device camera opens and the AR session tracks movement before adding navigation objects. 4. Create the indoor map/floor representation Step 9 – Create the floor/map object Create a Plane or another suitable mesh to represent the indoor floor/map. Apply the floor-plan image as a material/texture if you are using a 2D floor plan. Step 10 – Use real-world scale Scale the Unity map so that its dimensions correspond to the real building. A practical method is to create a temporary Cube with a known size, compare it with a known real-world distance, and scale the map accordingly. Step 11 – Add walls/obstacles Represent walls and other non-walkable areas with suitable Unity geometry/colliders. These objects will help define where the navigation path is allowed to travel. Step 12 – Keep the map in a consistent coordinate system Place the map, destination markers, person indicator and navigation geometry under a consistent origin. Avoid arbitrary movement of the map after baking the navigation mesh. 5. Create the user/person indicator Step 13 – Create a person indicator Create a simple Cylinder or similar primitive and use it as the user’s position marker on the map. Give it an easily visible material. Step 14 – Place it on the floor Move the indicator so that its base sits on the map/floor. Name it something clear such as Person. Step 15 – Add a camera reference Create or use an empty controller object and expose a reference to the AR camera. The controller will compare the camera’s tracked position with its previous position. Step 16 – Update the indicator from AR movement In the movement controller, read the AR camera pose each frame and translate the person indicator according to the tracked movement. The essential idea is: current AR position → compare with previous position → apply the movement delta to the map/person indicator. Step 17 – Check movement on the map Run the application and walk a short distance. The person marker should move consistently with you. If it moves in the wrong direction, check the map orientation, camera axes and the coordinate-space conversion. 6. Build the navigation mesh Step 18 – Install AI Navigation/NavMesh components Open Window → Package Manager and install the Unity AI Navigation package if it is not already available. The exact package name/menu can vary by Unity version. Step 19 – Create a NavMesh Surface Create an empty GameObject named NavMesh (or similar). Add a NavMesh Surface component. Configure its collection/source settings so the intended floor geometry is included. Step 20 – Configure the agent Set the navigation agent parameters so they represent a person: radius, height, maximum slope and step height. These values should reflect the actual indoor environment. Step 21 – Bake the NavMesh Select the NavMesh Surface and use Bake/Build. A successful bake should show the walkable region as the navigation overlay. Inspect gaps, disconnected regions and areas incorrectly marked walkable. Step 22 – Correct navigation problems If the walkable region is wrong, adjust the floor/wall geometry, agent size or NavMesh Surface settings and bake again. The route cannot be calculated correctly if the start and destination are separated from the baked walkable region. 7. Add destination points Step 23 – Create destination GameObjects Create empty GameObjects at the locations users may want to reach, for example Reception, Room101, Lab, Office or Exit. The names are only examples; use the actual destinations in your building. Step 24 – Place each destination accurately Move each destination marker to a valid point on the NavMesh. Keep its position aligned with the real-world map. Step 25 – Create a destination list Expose an array/list of Transform references in the navigation controller and drag each destination object into the appropriate element. 8. Calculate and draw the route Step 26 – Create the Navigation Controller Create an empty GameObject such as NavigationController and attach a C# script. The public project uses a controller concept that stores the current target, the person object, a NavMeshPath and a Line Renderer. Step 27 – Add a NavMeshPath In the script, create a NavMeshPath object during Start/Awake. This object stores the calculated route. Step 28 – Add a Line Renderer Add a Line Renderer component to the navigation controller. Give it a visible material and suitable width. The Line Renderer will draw the route through the NavMesh path corners. Step 29 – Calculate the path When a destination is selected, call NavMesh.CalculatePath(person.position, target.position, NavMesh.AllAreas, path). Check path.corners before drawing; an empty corner array indicates that a usable path was not found. Step 30 – Display the path Set the Line Renderer position count to the number of path corners and pass the path corner positions to SetPositions(). Enable the Line Renderer. Step 31 – Keep the route updated During Update(), recalculate the path while a target exists so the route can respond to changes in the person marker position. 9. Add the AR navigation arrow Step 32 – Prepare an arrow prefab Create a simple 3D arrow model/prefab. Orient it so its forward direction is known. This object will be instantiated in front of the AR camera. Step 33 – Create a navigation trigger Create a trigger object/collider that is instantiated near the user when navigation starts. The trigger is used to decide when the current AR arrow should be replaced. Step 34 – Create an arrow helper Create an invisible helper object positioned in front of the person indicator. It is used with the next route point to calculate the direction in which the AR arrow should point. Step 35 – Find the next route point Use the second point/corner of the Line Renderer because the first point normally corresponds to the current person position. The second point represents the next part of the route. Step 36 – Calculate the direction angle Convert the relevant X/Z positions to 2D points and use an angle calculation (for example, Atan2) to determine the horizontal angle between the user-facing helper direction and the next route point. Step 37 – Create an AR anchor Create an AR anchor at a position slightly in front of and below the AR camera. Parent the arrow to that anchor so the arrow remains stable relative to the tracked environment. Step 38 – Rotate the arrow Instantiate the arrow as a child of the anchor and apply the calculated horizontal rotation so it points toward the next route corner. Step 39 – Replace the arrow when the user moves When the user exits the navigation trigger, destroy the previous trigger/anchor/arrow and create a new trigger. When the new trigger is entered, calculate the next direction and spawn a new arrow. 10. Recommended scene hierarchy ● AR Session ● XR Origin / AR Session Origin ● Main Camera / AR Camera ● IndoorMap ● Floor ● Walls / Obstacles ● Person ● NavigationController ● NavMesh ● Destinations ● Destination_01 ● Destination_02 ● Destination_03 ● AR Arrow Prefab ● Navigation Trigger Prefab 11. Final testing procedure 1. Build the application to a supported ARCore Android device. 2. Grant camera permission when prompted. 3. Confirm that the AR camera starts and tracking is stable. 4. Move around briefly so AR tracking can establish a useful pose. 5. Check that the person marker follows your movement. 6. Select a destination. 7. Confirm that a NavMesh route is calculated. 8. Confirm that the Line Renderer displays the route. 9. Confirm that the AR arrow appears in front of the camera. 10. Walk forward and check that the arrow is replaced/reoriented as the navigation trigger is crossed. 11. If the route disappears, check whether the person marker has drifted outside the baked NavMesh. 12. If AR objects appear unstable, check camera tracking mode, map scale, scene origin and device tracking conditions. 12. Common problems and fixes Problem What to check AR camera does not start Android platform, ARCore XR Plug-in, camera permission and supported device. Person marker moves incorrectly Map orientation, scale, coordinate axes and camera pose conversion. NavMesh is empty NavMesh Surface source/collection settings, floor geometry and Bake/Build. No route is found Start and destination must lie on connected walkable NavMesh areas. Line route is invisible Line Renderer material, width, enabled state and path corner count. Arrow points the wrong way Arrow prefab forward axis, X/Z angle calculation and camera orientation. Arrow jumps or disappears Anchor creation, trigger collider size and object lifetime. Tracking drifts Real-world scale, lighting/features, camera tracking mode and periodic recalibration. 13. Conceptual flow of the complete system Start AR Session ↓ AR Camera tracks device movement ↓ Update Person position on the indoor map ↓ User selects destination ↓ NavMesh calculates route ↓ Line Renderer draws route ↓ Navigation Trigger is created ↓ Calculate next route direction ↓ Create AR Anchor in front of camera ↓ Spawn and rotate AR arrow ↓ User walks → trigger exits ↓ Old arrow/trigger removed → next arrow created 14. Important distinction about the five-part tutorial The public repository identifies the supplied video as Part 1 of a five-part series. Part 2 adds ZXing.NET QR-code setup, scene extension, scripting and QR-code recentering; later parts add advanced navigation-line/multiple-floor functionality and final visualisation/refactoring. Therefore, QR-code recentering should not be treated as a Part 1-only step. 15. Sources used for this guide ● YouTube – FireDragonGameStudio, Part 1: https://youtu.be/fuHFrMZ4q_s ● GitHub – FireDragonGameStudio/ARIndoorNavigation: https://github.com/FireDragonGameStudio/ARIndoorNavigation ● Unity AR Foundation documentation referenced by the repository. ● Related technical explanation of ARCore indoor navigation, NavMesh, QR positioning and AR route visualisation: https://www.raccoons.be/what-we-think/articles/creating-an-arcore-powered-indoor-navigation-application-in-u nity Prepared as a practical student/faculty implementation guide.