Search Unity

Editing Spotlight's sun that comes with a new scene.

Discussion in 'Getting Started' started by TrollAxeThrower, Dec 10, 2015.

  1. TrollAxeThrower

    TrollAxeThrower

    Joined:
    Dec 24, 2012
    Posts:
    16
    Hi it's a newbie question so I put it here.
    When you open a new scene, there is a "sun" behind the spotlight. But when you change a skybox, it's gone. Can I make my own sun and connect it to the spotlight automatically and set the day - night light colors as I wish? Can I edit it?
    Thanks!
     
  2. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    When using the procedural skybox, you can link a directional (not spot) light to the Environment Lighting, and this will make a representation of the sun that matches the light:
    SkyboxExample.png

    Note that in the Lighting panel "Sun" is set to "Directional Light".

    To create a new procedural skybox, create a new material and set the shader to "Skybox/Procedural":
    SkyBoxExample2.png

    In the material, you can customize the colors and the sun:
    SkyBoxExample3.png
     
    Ryiah likes this.
  3. TrollAxeThrower

    TrollAxeThrower

    Joined:
    Dec 24, 2012
    Posts:
    16
    Thanks man! I'll try it :)