Files
UnrealEngineUWP/Engine/Source/Editor/ContentBrowser/Private/ContentBrowserCommands.cpp
julien stjean a1ca900079 Changed the save asset behavior in the content browser. It will now only save the modified assets and ignore the others.
Added an resave command and menu entry that save all the assets.

#jira UE-198829, UE-160867
#rb Aditya.RaviChandran

[CL 29060875 by julien stjean in ue5-main branch]
2023-10-24 23:32:07 -04:00

27 lines
1.6 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ContentBrowserCommands.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/UICommandInfo.h"
#include "GenericPlatform/GenericApplication.h"
#include "InputCoreTypes.h"
#define LOCTEXT_NAMESPACE "ContentBrowser"
void FContentBrowserCommands::RegisterCommands()
{
UI_COMMAND(OpenAssetsOrFolders, "Open Assets or Folders", "Opens the selected assets or folders, depending on the selection", EUserInterfaceActionType::Button, FInputChord(EKeys::Enter));
UI_COMMAND(PreviewAssets, "Preview Assets", "Loads the selected assets and previews them if possible", EUserInterfaceActionType::Button, FInputChord(EKeys::SpaceBar));
UI_COMMAND(CreateNewFolder, "Create New Folder", "Creates new folder in selected path", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control | EModifierKey::Shift, EKeys::N));
UI_COMMAND(SaveSelectedAsset, "Save Selected Item", "Save the selected item", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control, EKeys::S));
UI_COMMAND(SaveAllCurrentFolder, "Save All", "Save All in current folder", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control | EModifierKey::Shift, EKeys::S));
UI_COMMAND(ResaveAllCurrentFolder, "Resave All", "Resave all assets contained in the current folder", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(CopySelectedAssetPath, "Copy Selected Asset Path", "Copy the selected asset path", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control, EKeys::C));
}
#undef LOCTEXT_NAMESPACE