> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spline.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Variable Change Event

The Variable Change Event allows you to trigger actions when a specific variable changes.

## Variable Change Event Properties

#### Select Variable

On the first dropdown, select the variable that the event should check for changes.

Once the event detects a change in the variable value, it will trigger the Actions added to it.

The dropdown list will access any variables available on the current file.

<img src="https://cdn.spline.design/_assets/docs/ed7dc797-822b-4e7e-b888-4e493679339b.png" alt="image" style={{ maxWidth: "300px" }} />

The following variable types can be used:

| Variable type              | Defined by                                                                                                                                                   | Usage                                                                                                                                                         |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🤹 Variables               | Number, String, Boolean, Timers, Counter or Random                                                                                                           | Variables can store values that are reusable. For detailed explanation read the [Variables](https://docs.spline.design/d17e9b49f5284f19b309fce92af0d011) doc. |
| ℹ️ Object Property         | Object’s position, rotation, or scale (X, Y, Z), or it’s width, height and depth as a number, e.g.: `100`                                                    | Capture object property changes, and save them as variables to create advanced interactions.                                                                  |
| 🖱️ Mouse Position (2D)    | The position of the mouse on the screen is defined by X and Y as numbers.                                                                                    | Animate or manipulate objects based on the mouse position                                                                                                     |
| 💥 Mouse Hit Position (3D) | The position of the mouse hitting an object in 3D space, as Position X, Y, or Z of the hit location, or the Position X, Y, and Z of the object that was hit. | Create interactions based on specific hit positions, e.g.: visualize hit in 3D space.                                                                         |
