How to render UBoxComponent?

I am doing RTS-style drag-select for my game. I used the results of GetHitResultUnderCursor as vertices to my UBoxComponent, which will be used to find overlapping actors. However, it doesn’t work. I suspect because I am using orthographic camera and rotate it, so the box doesn’t match with the drawn rectangle. However, I have no idea how to test it without drawing that UBoxComponent on screen. Is there a way to do that in C++? I would like to do it in my PlayerController class.

Hi, maybe this can help u getting startet with RTS-Style Selecting-Actors. The Tutorial uses an own Hud to do this.