Spot lighting

Spot lights are another type of lighting in Unity. They are meant to provide lighting on a specific spots. Common examples are flashlights and vehicle headlights. As you can see from the following screenshot, the light originates from the source in an outward cone shape:

In the Inspector panel, we can change the Range, Spot Angle, Color and Intensity. Range, in this context, refers to the distance between the light source and the furthest point in the cone. The Spot Angle is the angle of the outward exterior edge of the cone shape. The Spot Angle range is 1-179°. The larger the value is, the larger the cone face will be.

To create a spotlight, we select GameObject | Light | Spot Light from the top menu.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset