# On Visibility Change

## Overview

![The On Visibility Change Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-1c45239d97ce224865760299694dd6b8995585b1%2Fonvisibilitychangewitheventid.png?alt=media)

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

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

## Attributes

![The On Visibility Change Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-32c97e4ebf62ba8eb206fdba2ac9fdae543c36e0%2Fonvisibilitychangeattributes.png?alt=media)

| Attribute | Type         | Description                                                                                                                             |
| --------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| `Object`  | **ObjectID** | The **Object** in which a change of **Visibility** 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 **Visibility** 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.                                                                                 |
| `Is Visible`       | **Bool**     | Whether the **Object** is now visible or not.                                                                                                                                                                          |
| `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.1/toolbox/incari/event/unsubscribe.md) to unsubscribe from the **Event**. |

## See Also

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