Creating a Skybox In Unity
Here I will demonstrate an easy way to add a skybox to your unity scene.
To start out, you need to have skybox textures added to your project. I’m going to demonstrate how to set up a six sided skybox which uses 6 different textures to compose the sky. Note that it’s also possible to use a cube map. This is essentially 1 texture in the shape of a cube. However, here we are using the 6 sided variant.
First I set the main camera’s Clear Flags property to Skybox, if its not already there:
Next, I create a new material. I’m calling it New Skybox in this example:
Next I change the material’s shader from standard to Skybox/6 sided
After that I drag the six images into the inspector that correspond to the 6 sides of the skybox:
Finally, I open the lighting menu, and, under the environment tab, I set the Skybox Material property to the New Skybox material I just created:
And that’s all there is to it when you need to create a skybox.