Button Cursor State

Like what your seeing?

Support us as a GitHub Sponsor 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 ... become a sponsor today!

Introduction

Part of the Cursor System of the UX Foundation and UX Compelete assets

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

TypeNameNotes

CursorState

stateOnEnter

The state to apply when the pointer enters the object

CursorState

stateOnClick

The state to apply when the object is clicked

bool

holdOnMouseDown

Should the state be preserved so long as the mouse button is held down.

Last updated