Camera System
Learn about the camera system in Unity to create immersive and dynamic AR experiences.
The camera system in Unity is a powerful tool for creating immersive and engaging game experiences. It allows us to control the view of the game world and provide players with a sense of depth and space. In this lesson, we'll learn how to use the camera system in Unity to create dynamic camera views, follow a player character, and set up a basic camera controller.
Camera types
In Unity, there are two types of cameras: orthographic and perspective. Orthographic cameras are best suited for 2D games because they don't consider depth or perspective. On the other hand, perspective cameras are used for 3D games and provide a realistic view of the game world. When setting up a camera in Unity, we can choose between these two camera types and adjust their properties to fit our game’s needs.
Let’s learn about these camera types.
Orthographic cameras
Orthographic cameras are primarily designed for 2D games and applications. What sets them apart is their ability to create a flat and depthless view of the scene. These cameras don't consider perspective, making them ideal for games where objects maintain their size regardless of their distance from the camera. This characteristic makes orthographic cameras perfect for top-down games, platformers, and 2D simulations.
Given below are the key features of orthographic cameras:
No perspective or depth perception
Objects maintain their size regardless of distance
Well-suited for 2D games and architectural designs ...