Setting up a Skybox in Unity3D

This is just a quick article on how you can set up and use a custom skybox in Unity 😉 For those of you who aren’t currently familiar with them, a skybox is a essentially a 6-sided cube that will be rendered behind all graphics in the game (typically used to create the illusion of a sky in Unity3D).

For starters, right click in the Project view and create a new material for your skybox. Click the Shader dropdown and search for the Skybox shader. Select this, and you’ll be greeted with slots for 6 textures, along with some options for tiling and offsets.

Drag in the textures you’d like to use for the front, back, left, right, up, and down respectively. Once you’ve done this, you can now hop into the Lighting window to change the skybox in your current scene. This is currently located under Window > Rendering > Lighting Settings.

Once you’re here, you can drag in your new Skybox material to the topmost slot, and can tweak any of the settings here as you please. You can also choose to set the environment lighting and environment reflections source to be your Skybox:

With this all done, you should now have the skybox of your choosing! As a side note, I’ve often used this popular and incredibly good value-for-money skybox set from the Asset Store. I’m not using it in this current project, mainly because the skybox I need is one with a cityscape, but for the majority of the 3D projects I’ve worked on these have really done the trick.

A shot from one of the windows in the scene



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store