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