Game Development Reference
In-Depth Information
Figure 2-16. The Camera's components in the Inspector
Along with the mandatory Transform, it has a pretty robust Camera component and three
components that have no parameters at all. Because there is no mesh associated with a camera,
it has no Mesh Filter, Mesh Renderer, or collider components. The GUI Layer is what enables the
camera to “see,” and therefore render, GUI objects. These are 2D objects that are rendered in front
of the 3D Scene environment. The Flare Layer component allows the camera to “see” post-process
effects such as lens flares.
The Audio Listener component is a specialty component. It enables sound in the entire scene or
level. Unity automatically adds one to any camera presets that are created. A default camera is
created with each new scene, which ensures that your scene will be sound ready. Unfortunately,
every time you create a new camera, you will get another Audio Listener. Because there can be only
one Audio Listener to a scene, you will find yourself removing or at least disabling the extras.
 
Search WWH ::




Custom Search