set current mouse cursor enum does not work.

hi,
I prepared 2 mouse widgets and assigned them to project settings.
I hope to toggle these two widgets by setting “set current mouse cursor” enum in player controller.
however it only works when one of the mouse buttons is pressed or when the mouse is moving.
I have also played around with those mouse capture options in project settings.
nothing changes?not sure if I missed something.
I remember days/months ago I can change it with no problem.
but I don’t know if I accidentally messed up something that I’m not aware of.
hopefully it would easy to fix.
thank you!

Hey @baobao4435!

Can we see the code you’re using? It may be something along the lines of “The cursor only changes on update” or something like that, but I’m not sure so let’s see what you’re working with and make sure there aren’t any easy- to -miss things!

Let us know! :slight_smile:

sure thing,
I set up a timer to continuously toggles the widgets for testing.

and you can see it needs me to press mouse button or move it in order to toggle the widgets.

Here’s widgets and project setting



now have made a workaround where I gave up to change the enum.
instead,when needed i create a widget and set its location to the mouse location.
but I really don’t want to use a workaround.
it’s probably an check box somewhere? :joy:

Hey, all right! In the meantime I found a topic that seems like it would help you!

The problem is the mouse isn’t updating because the mouse doesn’t update unless it is interacted with, I don’t think. Sometimes widgets need to be manually updated.

Take a look at #4 on the list and see if that helps you! You just need to make an event that updates the widget after the enum is set!

1 Like

you can SetMouseCursorWidget and handle the enum inside the widget itself

1 Like

@Mind-Brain @Auran131 thanks you all trying to help me :slight_smile:
I was expecting that you could tap a check box somewhere and it solved. :joy: .
I have searched on the forum and seems there’s several people met the same problem and they all made a workaround.

if it needs extra work to do that, I’ll just give up to use it.

never mind,this is not the core feature in my project,not very important.

And I have moved on to work on other aspects of the project so I didn’t reply in time sorry.
still thank you again.

1 Like