Skip to main content

PointLight

Client Server

Metamethods​

boolean __eq(PointLight a, PointLight b)​

True if both reference the same instance.

Properties​

boolean active​

Get/Set whether the component is active

boolean activeInHierarchy​

Get whether the component is active in hierarchy

Object object​

Get the object this component is attached to

Object obj​

Get the object this component is attached to

boolean isDestroyed​

Get whether the component is destroyed

string type​

Get the type name of the component

boolean onePerObject​

Whether this component type is limited to a single instance per object

Color color​

Light color (alpha is ignored). Default white.

number intensity​

Brightness multiplier, >= 0. Default 1.

number radius​

Range in meters; no light at and beyond it. Default 10.

number inner​

Radius in meters up to which the light is at full intensity. Default 0.

number falloff​

Exponent of the fade between inner and radius: (1 - t)^falloff. 1 = linear, 2 = default, higher = faster drop near the inner radius.