Problems hiding mouse in Widget at runtime

Hey nove0nove0! How are you?

The problem that I can see there is that the Widget has control of the cursor instead of the Player Controller because its input mode is FInputGameAndUI.

One thing you can do to hide the cursor is to implement in the “OnClick” event the code below:

// OnClicked event UFUNCTION() void Your_Widget::OnButtonClicked() { // Hide Cursor SetCursor(EMouseCursor::None); // Your button logic here... }

Please let me know if that works for you!

1 Like