From the course: Cert Prep: Unity Certified Associate Game Developer Scripting with C#

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Testing navigation

Testing navigation

- [Narrator] In the previous movie, we generated a navigation mesh floor for the entirety of our environment. And it's looking good. In this video, I want to refine the enemy character, So they take account of this floor and actually move around the level intelligently. To start doing that, I'm going to select the enemy object here inside the hierarchy and move to the inspector. One thing we are missing from this object is an AI brain that's going to allow the enemy to understand where the floor is. We're going to be adding that as a components of the object. To do that, I'm going to grab the enemy, we choose components. We are going to move to navigation and choose NavMeshAgent. This will add a navigation mesh agent to the inspector here that you can see for this character. For the agent type, I want to make sure that humanoid is selected. And the rest of the parameters, I'm going to leave at their defaults here.…

Contents