Cursor changes to default when clicked on button

When interacting with a widget, it’s the widget that decides how the cursor behaves:

255707-untitled.png

So in your case you’d want the widget to set the cursor to a slashed circle.

When i have custom cursor and click on a button, cursor changes to default arrow and stays that way until i click any mouse button.
How do i make it not change when i click on button?

https://i.gyazo.com/ac2933fda950059214a86d6375acbcd4.mp4

Yes, but now it changes when i’m HOVERING the button
When i’m leaving button area it turns to arrow AGAIN

https://i.gyazo.com/632e5c77427783daeb289695018cd11d.mp4

So leave it at default here and override the cursor on button click / release. Might work.

not working =(

I disagree, it’s working well:

Image from Gyazo

Border and button set to the same cursor.

edit: probably hard to see:

Image from Gyazo

Anyway, set the cursor for each widget.

Maybe I misunderstood you. You’re having issues when the cursor is over the widget or when the cursor is not over the widget?

i have troubles when cursor LEAVES the button widget

Bump up

i have troubles when cursor LEAVES the button widget

So what you want to do, is set the Main widgets cursor

341164-cursorwidgetedit.png

to the cursor setting you wish, then for the ‘On Hovered’ function of the button, set the main widgets cursor to the cursor you want to show, then ‘On UnHovered’ set the cursor back

341165-cursorchange.png

Hope this helps, I figured this out because I’m developing a game for a game jam and using ONLY widgets.

hey Everyone ! The only thing that worked on my case was this:

I hope it will help :slight_smile:

If you want to make sure that the cursor updates instantly right on the button, try making the button itself not focusable, because otherwise the button itself overrides the cursor


. Hope this helps.