Component.light Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.light

var light : Light

Description

The Light attached to this GameObject (null if there is none attached).

JavaScript
light.range = 10;