Navigation in a Procedurally Generated World | Unity NavMesh Surface and NavMesh Agent Explained

Опубликовано: 05 Февраль 2026
на канале: Ketra Games
12,268
347

In this tutorial we're going to look at how we can use NavMesh pathfinding on a procedurally generated level. Using a randomly generated maze, we’ll have an agent be able to find the quickest route from one end to the other.

The project files are available to our patrons here:
►   / 91082561  

Want to follow along? This project is a good starting point
►   / 85538765  

The final script can be found here
► https://dotnetfiddle.net/zIqa97

Help support our work:
► Patreon:   / ketragames  

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / ketragames  

Introduction - 0:00
Installing the AI Navigation Package - 00:29
Setting up the NavMesh Surface - 01:00
Baking the NavMesh Surface for the Maze - 02:55
Resizing the Maze- 04:42
Setting up the NavMesh Agent - 07:24
Summary - 09:24

#KetraGames #LearnUnity #UnityTutorials #UnityTips