# OvrLight

### Description

This Node is used to manage the most common interactions with the Unity [Light](https://docs.unity3d.com/ScriptReference/Light.html) Component.

This OVER Component requires a Light to be set up. See the [Unity Manual](https://docs.unity3d.com/Manual/LightingOverview.html) for more info.

Based on the action the Light is required to perform, this component changes its behavior and requirements.

### Action Types

The OVER SDK provides several ways to interact with Unity Light Component. A list can be found in [OvrLightActionType](https://docs.overthereality.ai/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrlight/ovrlightactiontype).

#### Change Light Color

Allows the user to change Light color when executed.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](https://docs.overthereality.ai/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode)
{% endhint %}

<table><thead><tr><th width="214.7659040188865">Name</th><th width="187.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>LightObject</td><td><a href="https://docs.unity3d.com/ScriptReference/Light.html">Light</a></td><td>Unity Light Component</td></tr><tr><td>ActionType</td><td><a href="ovrlight/ovrlightactiontype">OvrLightActionType</a></td><td>Action type [<a href="ovrlight/ovrlightactiontype">ChangeLightColor</a>]</td></tr><tr><td>LightColor</td><td>Color</td><td>New light color to set</td></tr></tbody></table>

![Example of OvrLight, setting color to green.](https://content.gitbook.com/content/6xdubHTzJACGqFIM7yJy/blobs/Rzrmb7k63mvdRY0YtCyq/light_color.png)

#### Unity Action

Execute the assigned UnityAction. Use this Type to directly access the functions made available by Unity in the specific component.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](https://docs.overthereality.ai/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode)
{% endhint %}

<table><thead><tr><th width="214.7659040188865">Name</th><th width="182.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>LightObject</td><td><a href="https://docs.unity3d.com/ScriptReference/Light.html">Light</a></td><td>Unity Light Component</td></tr><tr><td>ActionType</td><td><a href="ovrlight/ovrlightactiontype">OvrLightActionType</a></td><td>Action type [<a href="ovrlight/ovrlightactiontype">UnityAction</a>]</td></tr><tr><td>UnityAction</td><td>UnityAction</td><td>UnityAction to be invoked</td></tr></tbody></table>

![](https://content.gitbook.com/content/6xdubHTzJACGqFIM7yJy/blobs/vsNMt21b75DdSiRm4QPb/ovrLight.png)
