O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - move and rotate the light

This new light is really harshing our mellow. Let's move and rotate it so that it casts light a little less blazingly.

  1. Ensure that the Directional Light is still selected. If you deselected it, click on the Directional Light label in the Hierarchy panel.
  2. In the Inspector panel, change the light's position to move it up and in front of our Scene. Enter 0 for the X position, 4 for the Y position, and -4 for the Z position. Moving a Directional Light like this does not alter its intensity, but we're just making sure it's within reach in the Scene view.
  3. Rotate the light so that it shines down on the objects. Enter a value of 44 for the light's X Rotation in the Inspector panel.
  4. Now, the light is casting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required