# On Mouse Enter

## Overview

![The On Mouse Enter Node with Object Base and Left Button.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-9279108d19c6fdcbf24ded6b70ac6cf763f6a5bc%2Fonmouseenternode20241.png?alt=media)

![The On Mouse Enter Node with Screen Base and Left Button.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-e3b904de1dc6a9afe497e975228a3aee933b4ac4%2Fonmouseenternode20241screen.png?alt=media)

**On Mouse Enter** is an **Event Listener** **Node** used for executing a **Logic Branch** when the cursor enters 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/overview#scopes): **Scene**, **Prefab**.

## Attributes

![The On Mouse Enter Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-5d5f48740621561d184160ef642f60fa232364cc%2Fnode-on-mouse-enter-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 entering 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 entry with respect to the bottom left of the **Screen**.                                                                         |
| `Object ID`        | **ObjectID** | The **Object ID** of the **Object** entered.                                                                                                                                              |
| `Event ID`         | **ObjectID** | The ID of the current **Event**. This can be connected to the [**Unsubscribe Node**](https://docs.incari.com/incari-studio/toolbox/events/unsubscribe) to unsubscribe from the **Event**. |

## See Also

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