Uploaded October 2022 | Updated September 2026, 1 hour ago
In this short tutorial you'll learn how to find the OffMeshLinks (high level component: NavMeshLink) that a NavMeshAgent will take on their current path.
Unfortunately, Unity does not provide a way to query the NavMesh for OffMeshLinks, so it's not possible to find ALL OffMeshLinks (unless you have all OffMeshLinks as NavMeshLinks and do something like FindObjectsOfType๓ ผ๓ ผ NavMeshLink()).
Using this method, regardless if you're using a NavMeshLink or OffMeshLink, you can find the exact points that a NavMeshAgent will traverse an OffMeshLink between!
As usual with the AI Series, we're using the NavMesh Components: docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.
๐ถ ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out ๐
๐จโ๐ป Get the FULL FREE PROJECT on GitHub: github.com/llamacademy/ai-series-part-43
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 Topic Introduction
00:53 Solution Summary
01:13 Scene & Component Overview
02:12 How to Check for OffMeshLinks
02:58 Why it works!
03:42 Become a Supporter!
04:10 Rendering the Line & Demo
04:35 Final Thoughts & Bonus!
In this short tutorial you'll learn how to find the OffMeshLinks (high level component: NavMeshLink) that a NavMeshAgent will take on their current path.
Unfortunately, Unity does not provide a way to query the NavMesh for OffMeshLinks, so it's not possible to find ALL OffMeshLinks (unless you have all OffMeshLinks as NavMeshLinks and do something like FindObjectsOfType๓ ผ๓ ผ NavMeshLink()).
Using this method, regardless if you're using a NavMeshLink or OffMeshLink, you can find the exact points that a NavMeshAgent will traverse an OffMeshLink between!
As usual with the AI Series, we're using the NavMesh Components: docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.
๐ถ ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out ๐
๐จโ๐ป Get the FULL FREE PROJECT on GitHub: github.com/llamacademy/ai-series-part-43
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 Topic Introduction
00:53 Solution Summary
01:13 Scene & Component Overview
02:12 How to Check for OffMeshLinks
02:58 Why it works!
03:42 Become a Supporter!
04:10 Rendering the Line & Demo
04:35 Final Thoughts & Bonus!










