O'Reilly logo

Mastering Unity 5.x by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting started with the zombie Prefab

The zombie character will appear many times throughout a level, and other levels. For this reason, we'll build one zombie in the Viewport and, from that, create a Prefab. This may be reused as many times as needed. To start, drag and drop the zombie from the Project Panel into the Scene, and set its Scale to 1.3 for all axes:

Getting started with the zombie Prefab

Adding a zombie character to the Scene and setting object Scale

Next, add a Nav Mesh Agent to the zombie, configuring it for a navigation mesh. Set the Radius to 0.26, fitting the Cylinder collider tightly to the character.

Note

This volume approximates the character on the navigation mesh. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required