Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEditorViewportSelectability
Description
Selects or deselects actors in a world. If no actors are specified, uses all the actors in the level.
| Name | SelectActorsByPredicate |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorViewportSelectability.h |
| Include Path | #include "EditorViewportSelectability.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorViewportSelectability.cpp |
static bool SelectActorsByPredicate
(
UWorld *const InWorld,
const bool bInSelect,
const bool bInClearSelection,
const TFunctionRef < bool *)> InPredicate,
const TArray < AActor * > & InActors
)
True if atleast one new actor was selected/deselected
Parameters
| Name | Remarks |
|---|---|
| InPredicate | Function to use to check if the actor should be selected/deselected |
| InActors | Optional list of actors to selected/deselected |
| bInSelect | If true, selects the actors. If false, deselects the actors |
| bInClearSelection | If true, clears the current selection before selecting the new actors |