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 blue text in the Hierarchy window
  1. Save the scene before continuing. Figure 7.11 represents our work so far:

Figure 7.11: Booth construction
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.205.223