Quick alignment of cameras
"Select Camera-gameobject-align with View" The interface shown in the game template is the screen after the camera is shot |
The study case
Add a terrain, a point light, three cubes
|
Learn about several common properties of cameras
Select the camera, and then in the inspector, see
Culling Mask: blanking mask "Shows which game objects can be combined with layers (the concept of layers has been discussed earlier)" Field of view: Vision "The distance between the camera and the game object, the distance from the small view, small distance from the large view" Clipping Planes The Crop screen, Near: Sets the distance of the camera from the game object, this specific thing is not visible, in the blind area; far: the furthest distance the camera can see is beyond sight. 】 ViewPort Rect: Viewport Rectangle "Assign camera to take a location" |
Detailed description of the ViewPort rect
Let's take a look at the picture below. For example, in CS, you should see three fields of view. Now use three cameras to see the contents of the previous rectangle (top left, upper right, bottom) Add three Cameras
To implement a task: the three rectangles in the above three cameras respectively Set the properties of the main camera
Set the properties of the Cameraleft, and then align to the field of view "Cameraleft-gameobject-align with View" Select Camera-gameobject-align with View
Set the properties of the Cameraright, and then align to the field of view "Cameraleft-gameobject-align with View"
You can now see the following view in the game template
|
Unity Learning-The use of cameras (vi)