Functions/Light



Create sources of light.

Inspector Settings



 * Is On - Enabled at level start.
 * Range - Distance that light will travel from source.
 * Color - Colour of light source.
 * Brightness - Intensity of light within Range.
 * Light Type
 * Point - Point light, a "sphere" of unshaped light.
 * Spot - Spotlight effect, uses Spot Light Angle.
 * Dir - Directional light, light from an angle with no discrete source. Best used as a Sun.

''Shadows are computationally expensive. Point lights more so. Use sparingly.''
 * Spot Light Angle - Width of spotlight from source.
 * Use Shadows - Make this light source cast shadows.
 * Flicker Values - A set of numbers, 0 (off) through to 9 (the light's Brightness value), to play through in sequence. Maximum of 20 numbers.
 * Example 1 - 90909090 - Flicker light on and off 4 times within Flicker Time.
 * Example 2 - 0123456789 - Gradually turn light on within Flicker Time.
 * Example 3 - 9876543210 - Gradually turn light off within Flicker Time.


 * Flicker Time - Time window to play Flicker Values settings.
 * Loop Flicker - If set, replay Flicker Values after finishing.
 * Is The Sun - Set if this light source is your sun. ''This has multiple effects, including defining the source of sun glare and FogVolume god ray effects.