UEditorUtilityLibrary::GetSelectedAssets

Gets the set of currently selected assets.