Unity 3D Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Time for action - add a light

Let's add one of these virtual lights to our Scene so that we can see our objects a bit better.

  1. In the menu, click on GameObject | Create Other. The three types of lights that Unity supports are listed there: point light, spotlight, and directional light.
  2. Choose Directional Light.

A new directional light is added to the Scene. The icon looks like a little yellow sun. When the light is selected (as it is now), a tube of yellow rays shoots out from it. That tube shows us which way the light is pointing.

Time for action - add a light

Make sure that Scene lighting is turned on by clicking on the little sunshine-looking icon at the top of your Scene view.