1
\$\begingroup\$

How can I remove the standard Unity sky (to have an empty space with no texture around my scene), but keep all the lighting effects from it?

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Could you not just set your camera's "clear" setting to "solid colour" instead of the default setting "skybox"? This should skip rendering the skybox into the camera's view without affecting lighting at all. \$\endgroup\$
    – DMGregory
    Nov 22, 2016 at 17:15

3 Answers 3

4
\$\begingroup\$

In your scene, select your Main Camera and, in the Inspector, change its "Clear Flags" settings in the Camera component from "Skybox" to "Solid Color." Then choose the color you'd like:

enter image description here

Note: There are no "lighting effects" in the skybox, it's simply a collection of textures. Any lighting effects should be the result of lights placed in the scene and shaders on the materials of your objects.

\$\endgroup\$
3
  • \$\begingroup\$ Doesn't the skybox affect global illumination? \$\endgroup\$
    – Philipp
    Nov 23, 2016 at 17:31
  • \$\begingroup\$ @Philipp Not any more than it "affects" reflections. A skybox (in Unity) is just a mesh (either a box with six textures, or a tessellated sphere) rendered around your scene; it's not a light source. You can have global illumination without a skybox. \$\endgroup\$
    – Foggzie
    Nov 29, 2016 at 17:42
  • 3
    \$\begingroup\$ The instructions in this answer are correct, but the comments on the role of the skybox may be misleading. By default, Unity does use a skybox for computing ambient light in the scene. The instructions given here don't interfere with that function though - the skybox doesn't actually need to be drawn by the scene camera to still be useful for lighting. \$\endgroup\$
    – DMGregory
    Dec 18, 2016 at 17:09
3
\$\begingroup\$

(This is an old post I know but in the mere chance of someone passing through this page still)

If he was referring to "scene" as the Scene View window in Unity, not the game view. You can toggle the sky view from the scene view's menu bar. There's a simple toggle button with a drop down menu allowing you to disable the skybox entirely from the scene view. Easy Peasy

Which is what I personally was looking for, although creating a new one is optional too.

For those who simply want a mere single click or two this option works as well.

The default skybox is such an eye sore, prefer a solid background.

\$\endgroup\$
0
\$\begingroup\$

Create a custom skybox. Not much else to say.

https://docs.unity3d.com/Manual/class-Skybox.html

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Could you elaborate? \$\endgroup\$
    – Gnemlock
    Nov 23, 2016 at 22:08
  • 1
    \$\begingroup\$ I could elaborate somewhat possibly. \$\endgroup\$
    – jgallant
    Nov 23, 2016 at 22:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .