Files
UnrealEngine/Engine/Source/Editor/SkeletalMeshEditor/Private/SkeletalMeshEditorCommands.h
2025-05-18 13:04:45 +08:00

42 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Framework/Commands/Commands.h"
#include "HAL/Platform.h"
#include "Internationalization/Internationalization.h"
#include "Styling/AppStyle.h"
#include "Templates/SharedPointer.h"
#include "UObject/NameTypes.h"
#include "UObject/UnrealNames.h"
class FUICommandInfo;
class FSkeletalMeshEditorCommands : public TCommands<FSkeletalMeshEditorCommands>
{
public:
FSkeletalMeshEditorCommands()
: TCommands<FSkeletalMeshEditorCommands>(TEXT("SkeletalMeshEditor"), NSLOCTEXT("Contexts", "SkeletalMeshEditor", "Skeletal Mesh Editor"), NAME_None, FAppStyle::GetAppStyleSetName())
{
}
virtual void RegisterCommands() override;
public:
// reimport
TSharedPtr<FUICommandInfo> ReimportMesh;
TSharedPtr<FUICommandInfo> ReimportMeshWithNewFile;
TSharedPtr<FUICommandInfo> ReimportAllMesh;
TSharedPtr<FUICommandInfo> ReimportAllMeshWithNewFile;
// reimport with dialog
TSharedPtr<FUICommandInfo> ReimportWithDialog;
// bake materials for this skeletal mesh
TSharedPtr<FUICommandInfo> BakeMaterials;
// Reset bones transforms
TSharedPtr< FUICommandInfo > ResetBoneTransforms;
TSharedPtr< FUICommandInfo > ResetAllBonesTransforms;
};