Fun With Skybox’s in Unity

This article will focus on manipulating the Skybox in Unity from scratch.

First we need to create the material to be used in the skybox. Create a new material, and select “Skybox” as a shader.

The skybox material requires 6 objects to be dragged in the correct order. If we think like we are in a cube, there will be 6 different sides in our view. Thus, we need to add them respectively, in the correct order.

You will notice that the material’s preview on the bottom gets updated simultaneously. This actually gives us the opportunity to check if we have done any mistake while dropping the correct files.

To update the game with our new skybox material, we need to change the skybox material.

For Unity 2020, we can simply reach to this setting by clicking Window — Rendering — Lightning

On the lightning window, click on “Environment” and simply drag and drop the new skybox material.

And that’s it. We have successfully created a skybox material and updated the game. As we change the skybox settings with the new material, we can observe that objects in the scene view will be updated immediately.

I was actually surprised to find out that we can easily manipulate environments with changing the environment lightning Source settings. By default, we will leave it as it is, as “SkyBox”. Skybox, setting uses the colors provided by the Skybox material. Just can be seen above, the environment changed from a sunny noon to a night with limited light.

Gradient and color are the 2 other settings that we can set the Source setting. Gradient allows us to choose different colors for sky, horizon and ground; whereas color setting uses a single color for the all lightning.

It is really useful to know that we can set the Source setting to Color and select a colour of our desire to create an in-door environment effect, just as below.

Intensity multiplier is basicly the brightness of the light. If we increase it, you will realize that scene becomes brighter.




Unity Developer

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

Recommended from Medium

How I programmed my first Amazon Alexa Skill and won a free Echo Dot

A Comprehensive Guide to Installing Apache Web Server on CentOS 7

Kubernetes Horizontal Auto Scaling with Golang microservice — Hands-on

Application of Systems Life Cycle: Mend Telehealth Software

Top 7 Courses to Learn Flutter in 2021

CS371p Fall 2021: Week 4

Self-Healing Code: A Journey Through Auto-Remediation

DUOLINGO: Boon or bane?

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
Ali Emre Onur

Ali Emre Onur

Unity Developer

More from Medium

Platformer: Wall Jump

I think you dropped something — Creating a simple loot drop system in Unity2D

Cinematography in Unity — Transparent Windows

Pushing Objects in Unity to Complete Puzzles