UMG how to release mouse and lock screen turn around

I just use show mouse in blueprint. but the screen still turn around with mouse movement.

and I still can click the stuff in the game.

how can I disable the screen turn around and block the touch event just effect in HUD layer

Hello ,

I may have a workaround for you. If you create a new widget and delete the canvas panel then drag in a button. This will take up the entire screen. You will then go to the details panel and under appearance change the Alpha for background color to 0.0. This will render the button invisible. You will want to make sure that this widget is created before any other widgets. You will be using it as a background to consume the mouse input.

Steps Broken down:

  1. Create new widget
  2. Delete Canvas panel
  3. Create a new button
  4. Change the Alpha of the button zero
  5. Create widget first (before all other widgets are added to screen)

I hope this workaround helps.

Make it a great day