This repo is meant to demonstrate the bug in AHUD::GetActorsInSelectionRectangle method from Unreal Engine, as of 4.25.3
Steps to reproduce:
- Launch the Project in the editor
- Start a PIE session
- Press and hold the left mouse button to start a selection rectangle
- While holding left click, try to include the two cilinders (TestActors) inside the green selection rectangle that is drawn
- Notice that another TestActor (TestActor OUTSIDE THE SCREEN) is always considered as part of the selection
All the relevant code is inside CustomHUD, plus two delegates on TopDownController and the corresponding input binding
Related Pull Request: https://github.com/EpicGames/UnrealEngine/pull/7350