Game Development Reference
In-Depth Information
Classified intel
In 3D Unity mode, the camera can be set to either
Orthographic
or
Perspective
. The dif-
ference between both projections is that with the
Orthographic Projection
, the object
won't scale by a factor inversely proportional to the distance from the camera. So in our
scene, we will see only one side of the cube that faces the camera. On the other hand, in the
Perspective Projection
, we will see that the face of the cube will scale down depending on
the distance from the camera, which is similar to real life:
On the other hand, in the 2D mode, we won't see any significant difference between
Orthographic Projection
and
Perspective Projection
. In some cases, we will see only
one side if the cube is directly facing the camera. However, if we want to zoom in or out
the 2D camera in the
Orthographic Projection
, we can only adjust the
Size
parameter.
The Z transform position will not do anything, which is different from the
Perspective
Projection
. We can either adjust the Z transform position or the
Field of View
parameter to
zoom in or out as shown in the following screenshot: