I have setted up a widget, ArrowWidget, that shows when an arrow is pressed, and hides when it’s clicked somewhere else other than the widget itself, when the widget is shown i can hover with the mouse on one of the 3 buttons or i can click one of them and the OnHovered and OnClicked event are all handled correctly, all works fine untill i put on pause the game.
When i put on pause the game and load the PauseGameWidget and hide the SelectAnswerWidget with a button that i made, the game correctly stops and when i unpause the game and unload the PauseGameWidget and show the SelectAnswerWidget and i click on the arrow the ArrowWidget correctly shows but now when i click on one of the buttons of the widget the widget hides like i pressed not on it’s button but somewhere else.
It feels like the the widget has “lost” its ability to “catch” clicks.
I am in a pickle, can someone help?
In the image as you can see the green arrow is pointing on the problematic widget, all the other ui is from another widget called SelectAnswerWidget.
The visibility in the UMG is set for all the elements to Visible (UI_ArrowWidget,CanvasPanel,ButtonUp,ButtonLeft,ButtonRight)
In the NativeConstruct of the cpp file of the ArrowWidget i typed: this->SetFocus(); and every time i check this boolean with this->HasMouseCapture() i can see that it result false, and i really do not understand why
I don’t know where to look to see how my input is setted, i have used the new enhanced input mapping context and and input actions and in my characterController i setted this way (image) and in the characterController.cpp file i set it up this way