Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Removed in version 5.0.1p4
Property light has been deprecated. Use GetComponent<Light>() instead. (UnityUpgradable)

Component.light

Switch to Manual
public var light: Component;

Description

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

	light.range = 10;