When I’m playing in editor or windowed, when I retrieve the location of the cursor I get values that are way beyond the actual viewport of the window I play in.
For example I play in window of 960 x 640. When I move my cursor to the bottom right corner of the window I get 1200 x 1070 or something.
However, when i go into fullscreen i retrieve the correct measurement of the viewport.
So, this is a super late reply, but I just ran into this issue myself and found a solution, so thought I’d share.
Turns out, the “Get Mouse Position on Viewport” node does have the issue that you described. However, for whatever reason, the “Get Mouse Position” node works correctly in both windowed and fullscreen mode. No idea why that is the case, but whatever.
If you’re having trouble finding the “Get Mouse Position” node, try turning off context sensitivity, it requires a player controller as input.