Component.lightvar light : LightDescriptionThe Light attached to this GameObject (null if there is none attached).
JavaScript
light.range = 10; using UnityEngine; import UnityEngine |
|
||||
| Scripting > Runtime Classes > Component | ||||
Component.lightvar light : LightDescriptionThe Light attached to this GameObject (null if there is none attached).
JavaScript
light.range = 10; using UnityEngine; import UnityEngine |