Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FLevelEditorViewportClient
Description
Duplicates the current Level Editor selection. Newly created elements can be selected after creation or not. E.g. Alt + Gizmo Drag creates a copy and then selects it, while pressing Alt while Gizmo Drag is being performed "stamps" a duplicate of the dragged selection, without selecting it.
| Name | DuplicateSelection |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h |
| Include Path | #include "LevelEditorViewport.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp |
void DuplicateSelection
(
bool bInSelectNewElements
)
Parameters
| Name | Remarks |
|---|---|
| bInSelectNewElements | whether the duplicates should be selected or not |