O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

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

Creating the zombie prefab

We can now begin the process of incorporating the Zombies into our scene. The Zombie asset created by Pxltiger comes with the models, materials, textures, and animated prefabs. This saves us hours of work constructing the elements, but we still need to prepare the assets for our scene and create a means of controlling the various states needed to have the creature interact with our player:

  1. Create the Zombie prefab by dragging the Zombie/Model/z@walk asset from the Project window to the Hierarchy window. When the item appears in the Hierarchy panel, the text will be blue.

We are utilizing the walk animation since our biters will always be moving. For future projects, you might want to use an idle or default animation ...

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