"Get Actors in Selection Rectangle" issue with Window size

Hi everyone,

I’m trying to learn and replicate RTS behavior from Warcraft 3 and I’m having an issue with the marquee selection.

This video shows my issue, where the selection marquee is incorrectly selecting units from the left-hand side, even though its far away. When I try to marquee select from the right-hand side, its fairly close to what I would want it to be. Note: I’m playing in Editor, the screen is on the far right side of my monitor and not in full-screen

In this video, I’m playing a Standalone game, with the window maximized and the marquee selection is working as intended. This is the behavior I want, no matter the screen size.

  • I know that screen resolution and mouse coordinates can be tricky, so I’m not exactly sure to what I might be doing wrong. The video below is a quick run-down of my node setup for calculating the PointA & PointB of my marquee selection.
    BlueprintNodes - YouTube

A quick work-around for me, was to check off “Include Non Colliding Components” off the Get Actors in Selection Rectangle function.

Looking in the Viewport, I don’t know what non-colliding component is causing the Function to include actor pre-maturely when I’m running in a small viewport. But seems to be working as intended in Full-Screen mode.

Hey I just ran into this same issue with selection beaing a little bit off to the rectangle drawn in HUD, have you find a solution?

Have you tried ticking off “Include Non Colliding Components” yet on the “Get Actors in In Selection Rectangle” yet?
image