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
Spring break was great and all, but now I have to get back in the school mood. Before break I had just started the tutorials to make a 2D ufo game in Unity. The skills learned in the tutorials will help in the future and for the final project where we make a game all by ourselves. One topic that was covered in the tutorials was colliders. Colliders are very important to understand if you want your game objects to interact. I had a little trouble, so I researched colliders so that I could refresh before class and make sure I understood them.
I researched colliders and found an article in the Unity documentation called Colliders. According to the article, colliders are invisible. The components of a collider determine the shape of an object. I learned that their are different types of primitive colliders for 3D and 2D. For 2D, there are two different colliders, the Circle Collider 2D and the Box Collider 2D. For 3D, there are three different colliders: Capsule, Sphere, and Box. Colliders have different configurations of their rigidbodies that determine how it interacts with an object. They are rigidbody, static, and kinematic rigidbody colliders. The static rigidbody collider doesn’t have a rigidbody, while the rigidbody collider has a non kinematic rigidbody. The Kinematic rigidbody collider has a kinematic rigidbody attached. Knowing the how the colliders interact is very important. Colliders:
Works Cited “Colliders.” Unity - Manual: Colliders, docs.unity3d.com/Manual/CollidersOverview.html. |
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
|