public class LightWrapper : MonoBehaviourWrapper

A light.

Spawnable via "Entity.PointLight".


public LuaColor GetColor()

(Client) Gets the color of this light.

Returns: (Color) The color of this light.


public void SetColor(LuaColor color, float temperature = -1)

(Client) Set the color of this light.

Arguments


public float GetRange()

(Client) Get the range of this light.

Returns: (float) The range of this light.


public void SetRange(float range)

(Client) Set the range of this light.

Arguments


public float GetIntensity()

(Client) Get the intensity of this light.

Returns: (float) The intensity of this light.


public void SetIntensity(float intensity)

(Client) Set the intensity of this light.

Arguments


public bool GetShadowsEnabled()

(Client) Gets whether the shadows are enabled.

Returns: (bool) Whether the shadows are enabled.


public void SetShadowsEnabled(bool enabled)

(Client) Sets whether the shadows are enabled.

Arguments


public void SetLightTemperatureEnabled(bool enabled)

(Client) Sets whether the light temperature is enabled.

Arguments


public void SetShadowResolution(int res)

(Client) Sets the shadow resolution.

Arguments


public void SetSpotAngle(float angle, float innerSpotPercent = 0)

(Client) Sets the spot angle and inner spot percent. This will turn the light from point to spot light.

Arguments


public float GetVolumetricDimmer()

(Client) Gets the light's volumetric dimmer value.

Returns: (float) The light's volumetric dimmer.


public void SetVolumetricDimmer(float value)

(Client) Sets the light's volumetric dimmer.

Arguments