Description

The Get Mouse Position on Viewport node does not appear to give the correct position of the mouse in the viewport. The further the mouse is moved away from 0, 0, the greater the discrepancy appears to become.

Steps to Reproduce
  1. Create a new top down project.
  2. Add a new HUD Blueprint to the project.
  3. Create the setup shown in the attached image in the new HUD Blueprint.
  4. Create a new GameMode Blueprint for the project.
  5. Set the new GameMode Blueprint to use the HUD Blueprint created in step 2.
  6. Start PIE.
  7. Move the mouse around the screen.

RESULT:
The position of the text on the screen does not match the position of the mouse.

EXPECTED:
The position of the text on the screen matches the position of the mouse.

WORKAROUND:
Use the Get Mouse Position node instead of the Get Mouse Position on Viewport node that is shown in the image.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

6
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.184.19
CreatedNov 6, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021