# Button Cursor State

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](/old-kb/where-to-buy/become-a-sponsor.md) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](/old-kb/where-to-buy/become-a-sponsor.md) ... become a sponsor today!
{% endhint %}

## Introduction

{% hint style="info" %}
Part of the [Cursor System](/old-kb/toolkit-for-ui-and-ux/unity/learning/core-concepts/cursor-tools.md) of the UX Foundation and UX Compelete assets
{% endhint %}

Indicates the cursor state to be applied when the mouse enteres a RectTransfrom and the state to be applied when the mouse is pressed while over the RectTransform.

This is most commonly used with Drag and Drop Items, Buttons, Sliders and anything else the user might click down on and that should show a different mouse pointer when they do.

## Definition

### Fields and Attributes

<table><thead><tr><th width="150">Type</th><th width="182.41271262309755">Name</th><th width="370.2">Notes</th></tr></thead><tbody><tr><td>CursorState</td><td>stateOnEnter</td><td>The state to apply when the pointer enters the object</td></tr><tr><td>CursorState</td><td>stateOnClick</td><td>The state to apply when the object is clicked</td></tr><tr><td>bool</td><td>holdOnMouseDown</td><td>Should the state be preserved so long as the mouse button is held down.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.heathen.group/old-kb/toolkit-for-ui-and-ux/unity/components/button-cursor-state.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
