# On Mouse Leave

## Overview

![The On Mouse Leave Node with Object base.](https://4267723012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEts3pBau6LMamSYhGZp%2Fuploads%2Fgit-blob-938fac12b341f9efeef044e11e2b4b16a5068283%2Fnode-on-mouse-leave-objbase.png?alt=media)

![The On Mouse Leave Node with Screen base.](https://4267723012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEts3pBau6LMamSYhGZp%2Fuploads%2Fgit-blob-74245b95c662e256371e3fb8231e44f1a7cb2e83%2Fnode-on-mouse-leave-scrbase.png?alt=media)

**On Mouse Leave** is an **Event Listener** **Node** used for executing a **Logic Branch** when the cursor leaves an **Object**.

The **Attribute** `Event Base` allows the user to choose whether the **Node** is triggered only for a specific **Object** or for any **Object** in the **Screen**.

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

## Attributes

![The On Mouse Leave Node Attributes.](https://4267723012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEts3pBau6LMamSYhGZp%2Fuploads%2Fgit-blob-6dd8a7d3fffafa3c3f01f2013085984d3672b95c%2Fnode-on-mouse-leave-attri.png?alt=media)

### Event Base

| Attribute    | Type          | Description                                                                                               |
| ------------ | ------------- | --------------------------------------------------------------------------------------------------------- |
| `Event Base` | **Drop-down** | Whether the **Logic** will be triggered when the cursor enters a particular **Object** or the **Screen**. |

## Inputs

Note: **Input Sockets** only available when `Event Base` is set to `Object`.

| Input           | Type         | Description                                                                        |
| --------------- | ------------ | ---------------------------------------------------------------------------------- |
| `Object ID`     | **ObjectID** | The **Object** in which leaving with the cursor 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.                                                           |
| `Position`         | **Vector2**  | **Vector** containing the XY-coordinates of the point of exit with respect to the bottom left of the **Screen**.                                                                                 |
| `Object ID`        | **ObjectID** | The **Object ID** of the **Object** left.                                                                                                                                                        |
| `Event ID`         | **ObjectID** | The ID of the current **Event**. This can be connected to the [**Unsubscribe Node**](https://docs.incari.com/incari-studio/2022.2/toolbox/events/unsubscribe) to unsubscribe from the **Event**. |

## See Also

* [**Events**](https://docs.incari.com/incari-studio/2022.2/toolbox/events)
* [**Mouse**](https://docs.incari.com/incari-studio/2022.2/toolbox/events/mouse)
