A Camera is a device through which the player views the world.
A screen space point is defined in pixels. The bottom-left of the screen is (0,0); the right-top
is (pixelWidth,pixelHeight). The z position is in world units from the camera.
A viewport space point is normalized and relative to the camera. The bottom-left of the camera is
(0,0); the top-right is (1,1). The z position is in world units from the camera.
| fieldOfView |
The field of view of the camera in degrees.
|
| nearClipPlane |
The near clipping plane distance.
|
| farClipPlane |
The far clipping plane distance.
|
| orthographicSize |
Camera's half-size when in orthographic mode.
|
| orthographic |
Is the camera orthographic (true) or perspective (false)?
|
| depth |
Camera's depth in the camera rendering order.
|
| aspect |
The aspect ratio (width divided by height).
|
| cullingMask |
This is used to render parts of the scene selectively.
|
| backgroundColor |
The color with which the screen will be cleared.
|
| rect |
Where on the screen is the camera rendered in normalized coordinates.
|
| pixelRect |
Where on the screen is the camera rendered in pixel coordinates.
|
| targetTexture |
Destination render texture (Unity Pro only).
|
| pixelWidth |
How wide is the camera in pixels (Read Only).
|
| pixelHeight |
How tall is the camera in pixels (Read Only).
|
| cameraToWorldMatrix |
Matrix that transforms from camera space to world space (Read Only).
|
| worldToCameraMatrix |
Matrix that transforms from world to camera space.
|
| projectionMatrix |
Set a custom projection matrix.
|
| velocity |
Get the world-space speed of the camera (Read Only).
|
| clearFlags |
How the camera clears the background.
|
| layerCullDistances |
Per-layer culling distances.
|
| depthTextureMode |
How and if camera generates a depth texture.
|