Mouse like crosshair and interaction with world widgets

What i want to achieve:

1 - if ill be near object, i want to appear mouse cursor in player screen (easy - some conditions and then set show mouse cursor)
2 - I want to keep mouse cursor in center of screen like crosshair and be able to click widgets placed in world (widget will appear only if ill be near specified object)

How to do this? If i use set input mode game and ui - i can’t move with gameplay viewport and mouse is not locked in center of screen…

i saw sample how to use 3d widgets and interact with them
maybe in documentation, can’t remember exactly

you need look in controller, there are stuff for mouse cursor, blocking rotation on mouse and etc.

There is a sample in the learn tab, called UMG Inventory, Inventory with UMG, something like that.