Natural language Communication System Phxnet Team Innovation Training Personal blog (11)

Source: Internet
Author: User

The myth is to add a sky background to the game scene to make the game more beautiful and more attractive

There are two ways of adding a sky box

1: Add Skybox on the current camera

2: Add Skybox on the current scene

The result of the two methods above is the same as the advantage of the first approach is that if there are multiple cameras in the world, switching cameras needs to look at different skies in this way to achieve

Let's try the sky box provided by unity to us first.

To use unity, of course, first import the Sky Resource Package Import method:

Assets Import Package->skyboxes It's not here.

After importing, you will see below the standard assets directory under the Project window the directory under the Skyboxes directory is the 9 sky boxes provided by unity.

Let's start with the first way to add a sky box to the camera.

First select main camera hierarchy below

Then click Component->rendering->skybox to add a sky box to the main camera and this is where we can see the Skybox property on the camera's property bar.

This position has two positions to note, see the position of the red marker in the figure

The first red box

Using the camera Sky box the value of the clear flags below must be skybox otherwise the effect is not come out, this is the children's shoes to pay attention to OH

A second red box

This is what we want to set up the Sky box material, click the Custom Skybox property after the small triangle icon in the pop-up selection bar to select just our system Sky box (directly to the sky box to this location can also) is in the game to see the effect of

Natural language Communication System Phxnet Team Innovation Training Personal blog (11)

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.