# On Opacity Change

## Overview

![The On Opacity Change Node.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-07e37a03c4262f5c09a38f00dcc03006b79c8afb%2Fonopacitychangewitheventid.png?alt=media)

**On Opacity Change** is an **Event Listener** **Node** used for executing a **Logic Branch** when the **Opacity** value of an **Object** changes.

[**Scope**](https://docs.incari.com/incari-studio/2023.2/overview#scopes): **Scene**, **Prefab**.

## Attributes

![The On Opacity Change Node Attributes.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-42795afd0ae868061ca84612e75e94802767da37%2Fonopacitychangeattributes.png?alt=media)

| Attribute | Type         | Description                                                                                                                                    |
| --------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `Object`  | **ObjectID** | The **Object** in which a change of the **Opacity** value triggers the **Logic Branch**, if none is given in the `Object ID` **Input Socket**. |

## Inputs

| Input           | Type         | Description                                                                              |
| --------------- | ------------ | ---------------------------------------------------------------------------------------- |
| `Object ID`     | **ObjectID** | The **Object** in which a change of the **Opacity** value triggers the **Logic Branch**. |
| `Subscribe` (►) | **Pulse**    | An **Input Pulse** that needs to be triggered to start listening to the **Event**.       |

## Outputs

| Output             | Type         | Description                                                                                                                                                                                                            |
| ------------------ | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**    | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution.                                                                                 |
| `Opacity`          | **Float**    | The modified **Opacity** value.                                                                                                                                                                                        |
| `Object ID`        | **ObjectID** | The **Object** received as **Input**.                                                                                                                                                                                  |
| `Event ID`         | **ObjectID** | The ID of the current **Event**. This can be connected to the [**Unsubscribe Node**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2023.2/toolbox/incari/event/unsubscribe.md) to unsubscribe from the **Event**. |

## See Also

* [**Events**](https://docs.incari.com/incari-studio/2023.2/toolbox/events)
* [**Object**](https://docs.incari.com/incari-studio/2023.2/toolbox/events/object)
