RTS selection rectangle actors

Dear UE users!

I am trying to create the classic rts ‘drag and select’ box thing. I have succeeded in creating the box itself however i am having problems with the ‘get actors in selection rectangle’. I have an array called ‘selected actors’ to which i would like to add the actors which are within the green rectangle. I am confused how to add an array of actors to the ‘selected actor’ array

many thanks

Are you dragging and selecting within screen space or along the ground in the world?
EDIT: Oh, screen space.

GetActorsInSelectionRectangle requires a class to look for. If it’s not set, it will not return any actors.

My buddy Matt has a video on this node (and tons of others) WTF Is? HUD - Get Actors in Selection Rectangle in Unreal Engine 4 ( UE4 ) - YouTube