UEditorLevelLibrary::SetSelectedLevelActors

Clear the current world editor selection and select the provided actors.