Files
UnrealEngine/Engine/Source/Editor/AdvancedPreviewScene/Public/AdvancedPreviewSceneCommands.h
2025-05-18 13:04:45 +08:00

45 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Framework/Commands/Commands.h"
#include "Internationalization/Internationalization.h"
#include "Styling/AppStyle.h"
#include "Styling/ISlateStyle.h"
#include "Templates/SharedPointer.h"
#include "UObject/NameTypes.h"
#include "UObject/UnrealNames.h"
class FUICommandInfo;
class ADVANCEDPREVIEWSCENE_API FAdvancedPreviewSceneCommands : public TCommands<FAdvancedPreviewSceneCommands>
{
public:
FAdvancedPreviewSceneCommands() : TCommands<FAdvancedPreviewSceneCommands>
(
"AdvancedPreviewScene",
NSLOCTEXT("Contexts", "AdvancedPreviewScene", "Advanced Preview Scene"),
NAME_None,
FAppStyle::Get().GetStyleSetName()
)
{}
/** Toggles environment (sky sphere) visibility */
TSharedPtr< FUICommandInfo > ToggleEnvironment;
/** Toggles floor visibility */
TSharedPtr< FUICommandInfo > ToggleFloor;
/** Toggles the grid */
TSharedPtr< FUICommandInfo > ToggleGrid;
/** Toggles post processing */
TSharedPtr< FUICommandInfo > TogglePostProcessing;
/**
* Initialize commands
*/
virtual void RegisterCommands() override;
};