Skip to content

llamacademy/ai-series-part-45

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Show a NavMesh In Game

In this tutorial repository and accompanying video you will learn how you can generate a Mesh at runtime based on the NavMesh Triangulation.

This can be used for debugging purposes or some cool ground-based shader effects. You will learn how to show the Navigation Mesh per agent type with the NavMeshSurface component from the Navigation Components as well as show different materials per area.

As of the Navigation Components 1.1.3, NavMesh.CalculateTriangulation() does not properly generate NavMeshTriangulation.areas per Navigation Area. Showing navigation areas therefore only works if you build using the legacy system, which does not support different navigation meshes per NavMeshAgent type.

Youtube Tutorial

Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to the LlamAcademy Patreon Page or join as a YouTube Member to show your support.

Phenomenal Supporter Tier

  • Andrew Bowen
  • YOUR NAME HERE!

Tremendous Supporter Tier

  • Bruno Bozic
  • YOUR NAME HERE!

Awesome Supporter Tier

  • AudemKay
  • Matt Parkin
  • Ivan
  • Reulan
  • Iffy Obelus
  • Dwarf
  • YOUR NAME HERE!

Supporters

  • Trey Briggs
  • Matt Sponholz
  • Dr Bash
  • Tarik
  • Sean
  • ag10g
  • Elijah Singer
  • Lurking Ninja
  • Josh Meyer
  • Ewald Schulte
  • Dom C
  • Andrew Allbright
  • AudemKay
  • EJ
  • Claduiu Barsan-Pipu
  • Sschmeil22
  • Ben
  • YOUR NAME HERE!

Other Projects

Interested in other Topics in Unity?

Socials

Requirements

  • Requires Unity 2021.3 LTS or higher.
  • Universal Render Pipeline