Get Actors in Selection Rectangle

Get Actors in Selection Rectangle

Windows
MacOS
Linux

Returns the array of actors inside a selection rectangle, with a class filter.

Sample usage:

TArray<AStaticMeshActor*> ActorsInSelectionRect; Canvas->GetActorsInSelectionRectangle<AStaticMeshActor>(FirstPoint,SecondPoint,ActorsInSelectionRect);

Target is HUD

Get Actors in Selection Rectangle
Target
Class Filter
Select Class
First Point
X0.0
Y0.0
Second Point
X0.0
Y0.0
Include Non Colliding Components
Actor Must be Fully Enclosed
Out Actors

Inputs

Target
HUD Object Reference
Class Filter
Actor Class Reference
First Point
Vector 2D Structure (by ref)

The first point, or anchor of the marquee box. Where the dragging of the marquee started in screen space.

Second Point
Vector 2D Structure (by ref)

The second point, where the mouse cursor currently is / the other point of the box selection, in screen space.

Include Non Colliding Components
Boolean

Whether to include even non-colliding components of the actor when determining its bounds

Actor Must be Fully Enclosed
Boolean

The Selection rule: whether the selection box can partially intersect Actor, or must fully enclose the Actor.

Outputs

Out Actors
Array of Actor Object References

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback