Background in 3D World- Game Dev Series 56

Objective: Quick guide of skybox.

In Unity we create a background in 3D game by using skybox. Skybox has 6 faces, just like using the faces of a cube from its inside. With skybox, you can rotate the camera freely in scene with no worry about the background boundaries.

Game scene without skybox
Game scene with skybox.

Create a skybox

Skybox is a type of material, we can create a material to complete it as a skybox.

Create a new material in Project and rename it.

In the Inspector, change the shader type to skybox> 6 sides.

It is just the same as a cube with 6 sides.
Next we need to import 6 sides of texture that we prepared.

As you see, you can also select the type of sides by the name on it. For example, “Up” is for the top side of texture.

After setting the 6 sides, you can select this skybox in the Lighting tab.

That is how you set a skybox in a 3D game!

More to explore…

Besides creating your own skybox, you can also search for assets store to find out more interesting skybox.

Enjoy the fun with different skybox!

--

--

--

A passionate gamer whose goal is to work in video game development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

🎮Press anywhere on the screen to bounce the doughnut! 🍩

Static Factory Methods vs Constructors

A Primer on Python Data Types and Syntax

Developing mobile solutions

How the success of my pet project pushed me to migrate to the cloud

Colours for your Code

Git and its Tricks via Scenarios Part 2

What is While-True-Break in Python?

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
S.J. Jason Liu

S.J. Jason Liu

A passionate gamer whose goal is to work in video game development.

More from Medium

Installing Probuilder In Unity

Using Reflection Probes in Unity3D and the URP

Adding a new ability to our prototype — The Triple Shot

What is a Control Track in Timeline