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 booth prefab

Our booth is now complete. We will need three copies of the completed object. But instead of using duplicate, we will turn the object into a prefab. The Unity prefab asset type is a convenient method for creating asset templates. An instance of a prefab contains the components, properties, and values from the original and changes can easily be applied to all instances. Prefab creation is simple, and should be used whenever multiple copies of an object are needed:

  1. Drag the Booth GameObject to the Project/Prefabs folder. This process will create a template asset which will be used to populate the scene with additional game booths:
Figure 7.10: Prefab items have a cube icon in the Project window and will be displayed ...

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