Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEditorViewportSelectability
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorViewportSelectability.h |
| Include | #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
)
Remarks
Selects or deselects actors in a world. If no actors are specified, uses all the actors in the level. True if atleast one new actor was selected/deselected
Parameters
| Name | Description |
|---|---|
| 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 |