Files
UnrealEngineUWP/Engine/Source/Editor/ReferenceViewer/Private/ReferenceViewerActions.h
Mike Fricker 403a84fcfa Asset Size Mapper tool
- New "Size Map" feature that shows the resource size for selected assets in Content Browser
- Select assets in Content Browser, right click and choose "Size Map..." to show sizes for those assets
- Select actors and press Alt+Shift+M to show sizes of assets used by those actors
- Select assets in Reference Viewer, right click and choose "Size Map..." to show sizes for those assets
- Also added a new "Tree Map" general purpose Slate widget (STreeMap)

[CL 2521609 by Mike Fricker in Main branch]
2015-04-22 15:58:21 -04:00

46 lines
1.5 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
// Actions that can be invoked in the reference viewer
class FReferenceViewerActions : public TCommands<FReferenceViewerActions>
{
public:
FReferenceViewerActions() : TCommands<FReferenceViewerActions>
(
"ReferenceViewer",
NSLOCTEXT("Contexts", "ReferenceViewer", "Reference Viewer"),
"MainFrame", FEditorStyle::GetStyleSetName()
)
{
}
// TCommands<> interface
virtual void RegisterCommands() override;
// End of TCommands<> interface
public:
// Opens the selected asset in the asset editor
TSharedPtr<FUICommandInfo> OpenSelectedInAssetEditor;
// Re-constructs the graph with the selected asset as the center
TSharedPtr<FUICommandInfo> ReCenterGraph;
// Shows a list of objects that the selected asset references.
TSharedPtr<FUICommandInfo> ListReferencedObjects;
// Lists objects that reference the selected asset.
TSharedPtr<FUICommandInfo> ListObjectsThatReference;
// Shows a size map for the selected asset.
TSharedPtr<FUICommandInfo> ShowSizeMap;
// Shows a reference tree for the selected asset.
TSharedPtr<FUICommandInfo> ShowReferenceTree;
// Creates a new collection with the list of assets that this asset references, user selects which ECollectionShareType to use.
TSharedPtr<FUICommandInfo> MakeLocalCollectionWithReferencedAssets;
TSharedPtr<FUICommandInfo> MakePrivateCollectionWithReferencedAssets;
TSharedPtr<FUICommandInfo> MakeSharedCollectionWithReferencedAssets;
};