While I was working on the Flappy Bird game, I had to make a prefab of the column obstacles. I didn’t know that a prefab was or what it did. Prefabs also came up in the UFO game, which made me curious. I figured out that they must be very important when using multiple objects, so I looked it up.
I researched prefabs and found an article in the Unity documentation called Prefabs. According to the article, a prefab is basically a template of a object in a game. Using prefabs allows you to edit one specific object and then make copies that have that same change. Even though the edits in a prefab copy over, you can override some things for a certain object. If you go to assets and then click create prefab, you can make a prefab. After you do that, you drag the object onto the prefab. You can also just drag the prefab from the project to the scene view. After reading that article, I learned that prefabs are very easy to use and make creating a game easier. Prefabs:
Technologies, Unity. “Prefabs.” Unity - Manual: Prefabs, docs.unity3d.com/Manual/Prefabs.html.
0 Comments
Leave a Reply. |
AuthorI'm a student at Durham School of the Arts, and currently in the Game Art Design pathway. I like playing the Sims 4, playing with dogs, and riding horses. This blog will reflect my learning and discoveries. Archives
May 2019
Categories
All
|