Game Development Reference
In-Depth Information
Illustration 30: The space shuttle to be used for shooting projectiles
In this section we are going to learn a new concept in Unity, which is the prefab . The idea of
the prefab is based on creating a game object and add all of the necessary components, scripts,
textures, and so on to that object. After that, we store this object as a prefab. This prefab can
be used to generate unlimited number of copies of the original object, and we are able to
modify a large number of objects from one place by modifying the prefab used to create
them. Prefabs are going to be useful for making bullets and rockets, since shooting requires
generating unspecified number of bullets and rockets during game execution.
Search WWH ::




Custom Search