Unity-Foundation-sky box

Source: Internet
Author: User
There are two ways to add a sky box

1: add it to the current camera. (If there are multiple cameras in the world, you can use this method to switch the camera to view different skies.)

 

2: add in the current scenario.

Unity has provided nine beautiful sky boxes. You can also find them online and import them.

First, import the sky resource package that comes with unity:

Menu Bar-> assets-> Import package-> skyboxes
 
 

After the import, we will see the assets directory under the project window. The skyboxes directory is the nine sky boxes provided by unity.
 

1. Add a sky box to the camera

First, select the main camera under hierarchy.
 
 

Click component-> rendering-> skybox to add a skybox component to the camera. The camera's attribute bar shows the skybox attribute, and then sets the material ball of the sky box, click the small circle behind the skym skybox attribute
 

The selection box of the material ball is displayed.


Return to the interface to see the effect.

2. Add a sky box to the foreground scene
On the menu bar, select edit-> render setting (ensure that other files are not selected in the scenario). The render setting attribute is displayed on the inspector panel.Then, click the small circle behind the skybox material attribute to see the selection of the sky material ball window, select the favorite sky material ball, and then return to the operation interface to see the effect.



The effect is as follows:






Unity-Foundation-sky box

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.