UEditorEngine::GetSelectionStateOfLevel

Get the selection state of the current level (its actors and components) so that it might be restored later.