Select Actor Component via C++

USelection* SelectedComps = GEditor->GetSelectedComponents();
SelectedComps->DeselectAll();
GEditor->SelectComponent(Component, true, true, true);
GEditor->NoteSelectionChange();

NoteSelectionChange() updates the gizmo in the viewport and calls appropriate delegates.

Last updated