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

var light : Light

Description

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

var other : GameObject;
other.light.range = 10;