Files
UnrealEngineUWP/Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorActions.h
matt kuhlenschmidt b6a2d54b30 Added a view menu toggle to the static mesh editor to show or hide the nanite proxy mesh. The option only appears if nanite is enabled on a mesh.
Added overlay text for nanite enabled and a warning when the proxy mesh is being displayed

Fixed overlay text creating new widgets every frame

#jira UETOOL-2972
#rb lauren.barnes

#ROBOMERGE-SOURCE: CL 15481409 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15481410 by matt kuhlenschmidt in ue5-main branch]
2021-02-19 22:14:33 -04:00

103 lines
3.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/Commands.h"
#include "EditorStyleSet.h"
/**
* Unreal StaticMesh editor actions
*/
class FStaticMeshEditorCommands : public TCommands<FStaticMeshEditorCommands>
{
public:
FStaticMeshEditorCommands() : TCommands<FStaticMeshEditorCommands>
(
"StaticMeshEditor", // Context name for fast lookup
NSLOCTEXT("Contexts", "StaticMeshEditor", "StaticMesh Editor"), // Localized context name for displaying
"EditorViewport", // Parent
FEditorStyle::GetStyleSetName() // Icon Style Set
)
{
}
/**
* StaticMesh Editor Commands
*/
/** */
TSharedPtr<FUICommandInfo> SetShowNaniteProxy;
TSharedPtr<FUICommandInfo> SetShowWireframe;
TSharedPtr<FUICommandInfo> SetShowVertexColor;
TSharedPtr<FUICommandInfo> SetShowPhysicalMaterialMasks;
TSharedPtr<FUICommandInfo> SetDrawUVs;
TSharedPtr<FUICommandInfo> SetShowGrid;
TSharedPtr<FUICommandInfo> SetShowBounds;
TSharedPtr<FUICommandInfo> SetShowSimpleCollision;
TSharedPtr<FUICommandInfo> SetShowComplexCollision;
TSharedPtr<FUICommandInfo> ResetCamera;
TSharedPtr<FUICommandInfo> SetShowSockets;
TSharedPtr<FUICommandInfo> SetDrawAdditionalData;
// Mesh toolbar Commands
TSharedPtr<FUICommandInfo> ReimportMesh;
TSharedPtr<FUICommandInfo> ReimportMeshWithNewFile;
TSharedPtr<FUICommandInfo> ReimportAllMesh;
TSharedPtr<FUICommandInfo> ReimportAllMeshWithNewFile;
// toolbar commands
TSharedPtr<FUICommandInfo> ToggleShowNormals;
TSharedPtr<FUICommandInfo> ToggleShowTangents;
TSharedPtr<FUICommandInfo> ToggleShowBinormals;
TSharedPtr<FUICommandInfo> ToggleShowPivots;
TSharedPtr<FUICommandInfo> ToggleShowVertices;
TSharedPtr<FUICommandInfo> ToggleShowGrids;
TSharedPtr<FUICommandInfo> ToggleShowBounds;
TSharedPtr<FUICommandInfo> ToggleShowSimpleCollisions;
TSharedPtr<FUICommandInfo> ToggleShowComplexCollisions;
TSharedPtr<FUICommandInfo> ToggleShowSockets;
TSharedPtr<FUICommandInfo> ToggleShowWireframes;
TSharedPtr<FUICommandInfo> ToggleShowVertexColors;
// View Menu Commands
TSharedPtr<FUICommandInfo> SetShowNormals;
TSharedPtr<FUICommandInfo> SetShowTangents;
TSharedPtr<FUICommandInfo> SetShowBinormals;
TSharedPtr<FUICommandInfo> SetShowPivot;
TSharedPtr<FUICommandInfo> SetShowVertices;
// Collision Menu Commands
TSharedPtr<FUICommandInfo> CreateDOP10X;
TSharedPtr<FUICommandInfo> CreateDOP10Y;
TSharedPtr<FUICommandInfo> CreateDOP10Z;
TSharedPtr<FUICommandInfo> CreateDOP18;
TSharedPtr<FUICommandInfo> CreateDOP26;
TSharedPtr<FUICommandInfo> CreateBoxCollision;
TSharedPtr<FUICommandInfo> CreateSphereCollision;
TSharedPtr<FUICommandInfo> CreateSphylCollision;
TSharedPtr<FUICommandInfo> CreateAutoConvexCollision;
TSharedPtr<FUICommandInfo> RemoveCollision;
TSharedPtr<FUICommandInfo> ConvertBoxesToConvex;
TSharedPtr<FUICommandInfo> CopyCollisionFromSelectedMesh;
// Mesh Menu Commands
TSharedPtr<FUICommandInfo> FindSource;
TSharedPtr<FUICommandInfo> ChangeMesh;
TSharedPtr<FUICommandInfo> BakeMaterials;
TSharedPtr<FUICommandInfo> SaveGeneratedLODs;
/**
* Initialize commands
*/
virtual void RegisterCommands() override;
public:
};