Recall & Review
beginner
What is the main purpose of a 2D camera in Unity?
A 2D camera in Unity captures and displays the 2D game world from a specific viewpoint, controlling what the player sees on the screen.
Click to reveal answer
beginner
How do you set the camera to orthographic mode in Unity?
Select the Camera object in the scene, then in the Inspector window, set the Projection property to 'Orthographic'. This removes perspective distortion for 2D games.
Click to reveal answer
intermediate
What does the 'Size' property of an orthographic camera control?
The 'Size' property controls the half-height of the camera's view in world units. Increasing it zooms out, showing more of the scene; decreasing it zooms in.
Click to reveal answer
beginner
Why is the camera's Z position important in a 2D setup?
In 2D, the camera must be positioned on the Z-axis so it can see the 2D sprites placed on the XY plane. Usually, the camera's Z is set to -10 to look towards the origin.
Click to reveal answer
intermediate
How can you make the camera follow a player smoothly in 2D?
You can write a script that updates the camera's position to follow the player's position, often using interpolation (like Lerp) to make the movement smooth.
Click to reveal answer
Which camera projection is best for 2D games in Unity?
✗ Incorrect
Orthographic projection shows objects without perspective distortion, which is ideal for 2D games.
What happens if you increase the 'Size' property of an orthographic camera?
✗ Incorrect
Increasing the 'Size' makes the camera show a larger area, effectively zooming out.
Where should the 2D camera be placed on the Z-axis to see sprites on the XY plane?
✗ Incorrect
The camera is usually placed at Z = -10 looking towards the XY plane at Z = 0.
Which Unity component do you adjust to make the camera follow a player?
✗ Incorrect
You update the camera's Transform position to follow the player.
What is a common method to smooth camera movement when following a player?
✗ Incorrect
Vector3.Lerp smoothly interpolates the camera's position between frames.
Explain how to set up a basic 2D camera in Unity and why orthographic projection is used.
Think about how 2D games show flat images without depth.
You got /4 concepts.
Describe a simple approach to make the camera follow a player smoothly in a 2D Unity game.
Imagine the camera is like a friend walking behind the player without sudden jumps.
You got /4 concepts.