Download

Mouse Position on Viewport in Editor mode

Hello everybody,

i’m scripting a tool to help level design. I’m looking for a way to find mouse position on viewport BUT in editor mode.

I’m using the Get Mouse Position on Viewport Node but it returns whole screen values (same as Get Mouse Position on Platform).

Is there a way to translate those values to the viewport window space?

Cheers,
Jacek.

hi @mustache_works
take a look at this and let me know if is what you need

Yeah I’ve seen it. Unfortunately the solution doesn’t work in editor mode. (Or at least not in a straightforward way).

Get Mouse Position on Viewport returns fullscreen values even though the level viewport is a docked window (default ue layout).

Mouse in the upper left corner.

anyone?