How to Add a Custom Skybox Unity 3D
As of now, I have moved the sci-fi control room to a URP project in Unity. It was time to learn a bit about how a sky box works.
- Window/Rendering/Lighting, keep that window open somewhere. I prefer it next to the inspector.
- Make a new Project Folder called SkyBox
- Create a new material called skybox or whatever you want within the skybox folder
- In the inspector, while selecting the new material you will see a drop-down called Shader
- From here you can choose what type of skybox you want
- Drag and drop the new skybox material into the lighting environment Skybox material slot.
- Play around with the setting and see what you come up with
I started off with the Skybox/Procedural. There are settings such as sun, sun size, sun size convergence, atmosphere thickness, sky tint, ground, and exposure. So a lot you can play with to make yourself a custom skybox for sure. And pretty fun!!!
As you noticed there are a few other types of sky box options available in Unity. The other one I have done thus far is the 6-sided skybox. I used a basic and simple skybox but of course, this can always be updated with the one I make or one premade from filebase or the Unity asset store, options galore.
- While Your skybox material is selected go to the inspector and change the shader to 6 sided skybox option.
- At this point, you have a sky box with 6 sides you made or you got from the asset store.
- There are a few settings like tint color, exposure, and rotation.
- Drag and drop the correct skybox part into its slot
There are 6 slots. Front +Z, Back -Z, Left +X, Right +X, Up +Y, Down -Y. There are also options at the bottom called render queue/from shader and double-sided global illumination.