Unity Learning-The use of cameras (vi)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.