Unreal Tutorial·

How to use Skybox in Unreal Engine?

In this tutorial, you will learn how to set up a sky box for your UE scene, using a cube map texture or an HDRI map.

Using a sky box over the default Unreal sky has many advantages. In many cases, it leads to better game performance and a more original game look. If you want more FPS and fewer player complaints about "looking like every other Unreal game", Skybox might be a good solution for you.

Image shows performance comparison between default sky and skybox in Unreal Engine. Default sky runs at 51 FPS and Skybox at 64 FPS In the image above, you can see that using a skybox not only resulted in a more original scene look, with beautiful lighting from Sky Light, but also 13 more FPS (from 51 FPS with the default sky to 64 FPS with skybox).

How to replace the default sky with a skybox? Do this:

Find the right skybox texture for you

There are many places on the internet where you can find them.

You can get it from FAB

This is my favorite place to find textures like that. The prettiest ones are often paid, but for me, it is worth it. You can search "Skybox" in the search window and look around. You know best what will fit your game's art style and vibe. https://www.fab.com/search?q=skybox

Other places

If you strive for hyper realism, you can check websites like HDRI Skies, but I prefer FAB.

Remove Default Sky

This will include removing objects that create the default sky in Unreal. If you want, you can use Volumetric Cloud with the custom skybox, but Volumetric Cloud is one of the more expensive objects in the default sky.

Find Exponential Height Fog and delete it

Exponential Height fog in Unreal Engine editor outliner

Find Volumetric Cloud and delete it

Volumetric Cloud in Unreal Engine editor outliner

Find Skylight Atmosphere and delete it

Sky Atmosphere in Unreal Engine editor outliner

Create Sky material

This is a material that our skybox will use.

Right-click the space in the content browser

Empty space in Unreal content browser

Select Material

Creating new material in Unreal Engine editor

Open the new material

Newly created Sky material

Change Shading Model to Unlit

Shading model selection in UE material edtior

Enable Two Sided Checkbox

Two sided checkbox in Unreal Material edtior

Enable Is Sky Checkbox

Is Sky checkbox in Unreal material edtior

Right-click on the empty space in the node graph and search for Texture Sample to add the node

Empty space in Unreal material edtior

Click on the Texture Sample node

Texture Sample node in Unreal material editor

In the Details Panel, select Texture

Texture selection inside of Texture Sample node

Set it to your imported Skybox

Selecting texture for a texture sample node

Click on the RGB pin and drag it to Emissive Color

RGB color pin of Texture Sample node

Done! Our material is ready

Plugged Texture Sample node to Emissive Color of material

Let's put the skybox on the scene

To do that, we will use a large default sphere, with our material applied to it

Click on Window tab

Window tab in upper part of Unreal edtior

Select Place Actors from the menu

Place Actors option in the Window menu - it enables placing actors on Unreal scene

Click More

More option in Place Actors - it enables more types of actors to place

Select Shapes

More option of place actors, with Shapes highlighted

Select Sphere, drag and drop it into the editor

Sphere option in Place Actors window

Drag and drop sky material onto a sphere

Blue arrow showing how to drag and drop Sky material onto sphere

Set Collision Preset to NoCollision

Collision Preset setting in Unreal Editor's details panel

Set Sphere location to 0, 0, 0

Blue circle highlights location in transform,

Click on the lock icon, to lock the scale on all axes

Circle highlight a lock on a scale editor. Clicking this lock prevents object deformation

Increase scale to a large size, for example, 2000

Scale part of transform, set to 1, 1, 1

Done! You should see your skybox now

Screenshot from Unreal editor, with skybox sky visible in the the Viewport

What now?

In my case, this change improved performance, and it does for many games. However, in some cases, this might not raise FPS at all. Most performance tips are contextual, and you need a Profiler to determine which specific changes to implement in your game. If you are looking for one that does not require extensive knowledge of graphics pipelines, click here to join our waitlist. We give many solutions like this, tailored specifically for your game.