Drawing Widget allows mouse to leave screen

Basically, when I use the following blueprint to draw a simple text widget.

24733-blueprint_widget.png

After triggering this blueprint, everything works except when I move my mouse down far enough it becomes visible over the windows taskbar. (Allowing the player to accidentally click and open programs)

Drag off the blue return value pin on Create Widget and type “Set Input Mode”… There’s a couple types of nodes you can use, but for something with mouse control on a menu I’d go with a “Set Input Mode UIOnly” for example.

Target = your player controller
In Widget to Focus = the widget you just created
Lock Mouse to Viewport = a possible solution to your problem when ‘true’

You can use a Set Input Mode GameOnly later on to get back to ‘normal’, and call Show Mouse Cursor on your player controller too to show/hide the mouse pointer.

I cannot seem to find this node, but I only have version 4.4.3. Is that why and is their any alternative?

Yeah - I think these are new features in 4.5 or 4.6. I don’t know of any alternative in 4.4.3. To be sure, uncheck “Context Sensitive” when you right click to get a list of nodes available.