Hello, future game developer! In Module One, we learned the basics of Unity — what it is, how to install it, and how to use the interface. We learned about the Scene, Game, Hierarchy, Project, and Inspector panels. Now it is time to start building.
In this module, we will learn about Game Objects and Components. Game Objects are the things you see in your game — like characters, trees, and coins. Components are the features that make them work — like movement, colour, and behaviour. By the end of this module, you will be able to create and control objects in your game world.
Tunde is a young game developer in Abuja. He wanted to create a character for his game. He opened Unity and created a Game Object — a simple cube. He was excited to see it in the Scene.
But the cube was just a shape. It didn't do anything. He learned about Components. He added a Rigidbody component to make it fall with gravity. He added a script to make it move. The cube came to life.
Tunde then turned his cube into a Prefab so he could use it again in other levels. He was proud of his first character. He learned that Game Objects and Components are the building blocks of every game.
Definition: A Game Object is any object in your game — a character, a coin, a tree, or a light.
Why important: Everything in your game is a Game Object.
Simple explanation: A Game Object is like a toy that you place in your game world.
Real-life example: A character in a game is a Game Object.
School example: A student places objects in a scene.
Home example: A toy on a shelf.
Nigerian example: A player character in a Nigerian game.
Illustration:
+----------------------+
| Game Object = |
| Anything in your |
| game |
| → Cube |
| → Player |
| → Coin |
+----------------------+
Mini summary: A Game Object is any object in your game.
Definition: You create a Game Object by right-clicking in the Hierarchy or using the GameObject menu.
Why important: This is how you add things to your game.
Simple explanation: Like adding a toy to a playroom.
Real-life example: A developer creates a cube in Unity.
School example: A student adds a sphere to the scene.
Home example: A hobbyist adds a cylinder.
Nigerian example: A developer creates a character.
Illustration:
Create Object:
1. Right-click in Hierarchy
2. Choose 3D Object → Cube
3. The cube appears in the scene
Mini summary: Create Game Objects to build your game.
Definition: A Component is a feature that you add to a Game Object to give it functionality.
Why important: Components make Game Objects do things.
Simple explanation: Components are like superpowers for your objects.
Real-life example: A Rigidbody makes an object fall with gravity.
School example: A Light component makes the scene brighter.
Home example: A sound component plays music.
Nigerian example: A script component makes a character move.
Illustration:
+----------------------+
| Component = |
| Feature added to |
| a Game Object |
| → Transform |
| → Rigidbody |
| → Collider |
+----------------------+
Mini summary: Components add features to Game Objects.
Definition: Transform is a component that controls an object's position, rotation, and scale.
Why important: Every object needs a Transform to be placed in the world.
Simple explanation: It tells the object where to be, how to face, and how big to be.
Real-life example: A chair has a position, rotation, and size.
School example: A desk in a classroom has a location and orientation.
Home example: A TV is placed in a certain spot and angle.
Nigerian example: A character's position in a game level.
Illustration:
Transform:
📍 Position (x, y, z)
🔄 Rotation (x, y, z)
📏 Scale (x, y, z)
Mini summary: Transform controls position, rotation, and scale.
Definition: Position is where the object is located in the world. It has X, Y, and Z coordinates.
Why important: You need to place objects in the right spot.
Simple explanation: It's like an address for your object.
Real-life example: A house has a street address.
School example: A student sits in a specific seat.
Home example: A bed is placed in a corner.
Nigerian example: A character starts at a specific point.
Illustration:
Position:
X = left/right
Y = up/down
Z = forward/backward
Mini summary: Position places an object in the world.
Definition: Rotation controls which direction the object is facing.
Why important: You need objects to face the right way.
Simple explanation: It's like turning your head.
Real-life example: A person turns to look at something.
School example: A chair faces the teacher.
Home example: A TV is turned toward the sofa.
Nigerian example: A character faces the enemy.
Illustration:
Rotation:
X = tilt up/down
Y = turn left/right
Z = roll
Mini summary: Rotation controls the direction an object faces.
Definition: Scale controls the size of the object.
Why important: You need objects to be the right size.
Simple explanation: It's like making something bigger or smaller.
Real-life example: A poster can be small or large.
School example: A globe can be scaled up or down.
Home example: A photo can be enlarged or reduced.
Nigerian example: A character can be scaled to fit.
Illustration:
Scale:
X = width
Y = height
Z = depth
Mini summary: Scale controls the size of the object.
Definition: A Prefab is a reusable Game Object. You can save it and use it many times.
Why important: Prefabs save time and keep things consistent.
Simple explanation: Like a stamp — you use it to make many copies.
Real-life example: A coin prefab can be placed many times.
School example: A student uses a template for posters.
Home example: A cookie cutter makes many cookies.
Nigerian example: A character prefab is used in many levels.
Illustration:
Prefab:
🔁 Reusable
📦 Save once, use many times
✅ Consistent
Mini summary: Prefabs are reusable Game Objects.
Definition: You have learned the basics of Game Objects and Components.
Why important: You can now start building your game world.
Simple explanation: You know how to add and control objects.
Real-life example: You can create a simple scene.
School example: You can build a level for your game.
Home example: You can create a small game environment.
Nigerian example: You can build a Nigerian-themed game.
Illustration:
+----------------------+
| You can build with |
| Game Objects! 🎉 |
| → Create objects |
| → Add components |
| → Use prefabs |
+----------------------+
Mini summary: You are now ready to build with Game Objects!
Create Object:
Step 1: Right-click Hierarchy → Cube.
Step 2: Click the cube.
Step 3: Set Position to (2, 1, 0).
Step 4: Set Rotation to (0, 45, 0).
Step 5: Set Scale to (2, 2, 2).
Create Prefab:
Step 1: Create a sphere.
Step 2: Add a Rigidbody.
Step 3: Drag to Project panel.
Step 4: Drag the Prefab into the scene.
+----------------------+
| Game Object (Cube) |
| → Transform |
| → Mesh Filter |
| → Mesh Renderer |
| → Box Collider |
+----------------------+
| Property | Description |
|---|---|
| Position | Location in world |
| Rotation | Direction facing |
| Scale | Size |
Prefab: Coin
→ Use in many places
→ Consistent size and behaviour
→ Easy to update
In this module, we learned about Game Objects and Components. We discovered that Game Objects are the building blocks of any game, and Components add functionality to them. We learned about Transform — position, rotation, and scale — and how to use Prefabs to reuse objects. With this knowledge, you can now start building your own game world. Great job!
Match the word with its meaning:
| Word | Meaning |
|---|---|
| 1. Game Object | A) The size of an object |
| 2. Component | B) Any object in your game |
| 3. Transform | C) A reusable Game Object |
| 4. Scale | D) A feature added to an object |
| 5. Prefab | E) Controls position, rotation, scale |
(Answers: 1-B, 2-D, 3-E, 4-A, 5-C)
Scenario 1: You want to place a tree in your game. What would you create?
Scenario 2: You need to place 100 coins in your game. What would you use to save time?
In groups of 3, create a simple scene with at least 5 Game Objects. Use different sizes, positions, and rotations. Share your scene with the class.
Create a simple scene with a cube, sphere, and cylinder. Change their position, rotation, and scale. Save the scene.
Create a scene with 10 Game Objects. Use at least 3 different shapes. Create a Prefab and use it at least 3 times. Save and share your scene.
Create a Prefab of a coin. Place 5 coins in your scene. Change their positions and rotations. Save the scene.
Create a scene with a character (cube), obstacles (spheres), and collectibles (prefab coins). Arrange them in an interesting way. Save the scene.
Fill-in-the-blank: 1-Game Object, 2-Component, 3-Transform, 4-Position, 5-Prefab
True/False: 1-F, 2-T, 3-F, 4-T, 5-F
Matching: 1-B, 2-D, 3-E, 4-A, 5-C
In Module Three, we will learn about C# scripting. We will write code to make our Game Objects move and interact. Before the next session, think about how you would like your character to move.
See you in Module Three! 🎉
End of Module Two · Game Objects and Components