UMG - UI Mode - Curso lost

Hi,

When I set my widget in UI Mode Only, I can see the cursor.

When I’m over or clicking on my button, everything work as expected but if I click on the “background” of my widget which is transparent, the cursor disappered and I lost it. The input is still in UI mode so not input goes to my Controller/Pawn, but I can’t retrieve the mouse.

The only way I found to solve it was to set the root layer to “visible” instead of “hit test invisible”.

To repro:
Use the attached widget in FPS Starter template
Attach it the viewport.
When you launch you can click on the White backgroun without issue, clicking elsewhere make the cursor disappeared with no way to get it back.

link text

Thanks,

Hello,

From the description in your post it sounds like this is working as intended. Have you tried setting the “set show mouse cursor” node to “True” This should keep your mouse from disappearing when you click off of your UI. I hope this information helps.

28730-showmousehelp.png

Make it a great day

Hi,

I’m surprised about this intended behavior.
I’m explaining you why:

I’m setting the input mode in : UI Mode Only. When setting this, the cursor is appearing and all the input are only sent to the UI. This is exactly the purpose of this mode.
But If I click in the ui space where there are no widget, I’m losing my cursor but I’m still in UI Mode. In this case, I can do nothing. My Game input are not responding and I can’t use my UI anymore. ALT F4 if the only way to close the game.

If you confirmed this is the way you design it, could you please raise my concern to improve this behavior and avoid loosing the cursor in UI Mode?

More, to be clear, I’m clicking in my Main Widget UI Screen Space, I’m not clicking out on it. My Main Widget is setup to be full screen so it covers the whole screen. It is just that the Root Widget is not responding to the cursor click so something else is handling the click, hiding the cursor and not releasing it when the mouse button is up.
If you have told me that if I click the cursor disappear and you can move the camera and so on while clicking and that the cursor is apperaing again, that would have been totally different. In this case, I’m just stuck.

Thanks for your feedback.
Ps: I will test the Show Mouse Cursor, but that’s a workaround as I must managed it’s visibility whereas I was planning planning the manage the Input Mode (which should be the case isn’t it?)

Hello,

After reading over your last post, I agree with some of your concerns and so I submitted a report ( UE-15835) to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your information and time.

Make it a great day