UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GameplayDebuggerCompat.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5// HEADER_UNIT_SKIP - Bad?
6
7#if WITH_EDITOR
8#include "Editor/EditorEngine.h"
9#include "LevelEditor.h"
10#endif // WITH_EDITOR
13
15
16class FGameplayDebuggerCompat : public FSelfRegisteringExec, public GameplayDebugger
17{
18public:
19 // Begin IModuleInterface
20 virtual void StartupModule() override;
21 virtual void ShutdownModule() override;
22 // End IModuleInterface
23
26#if WITH_EDITOR
33#endif
34
38
39 // Begin FExec Interface
40 virtual bool Exec(UWorld* Inworld, const TCHAR* Cmd, FOutputDevice& Ar) override;
41 // End FExec Interface
42
43private:
44 virtual bool CreateGameplayDebuggerForPlayerController(APlayerController* PlayerController) override;
45 virtual bool IsGameplayDebuggerActiveForPlayerController(APlayerController* PlayerController) override;
46
47 bool DoesGameplayDebuggingReplicatorExistForPlayerController(APlayerController* PlayerController);
48
50
51public:
52 virtual void RegisterCategory(FName CategoryName, FOnGetCategory MakeInstanceDelegate, EGameplayDebuggerCategoryState CategoryState = EGameplayDebuggerCategoryState::Disabled, int32 SlotIdx = INDEX_NONE);
53 virtual void UnregisterCategory(FName CategoryName);
55 virtual void RegisterExtension(FName ExtensionName, IGameplayDebugger::FOnGetExtension MakeInstanceDelegate);
56 virtual void UnregisterExtension(FName ExtensionName);
58 virtual void UseNewGameplayDebugger();
59
64
68
69private:
70
71#if WITH_EDITOR
72 FLevelEditorModule::FLevelEditorMenuExtender ViewMenuExtender;
73#endif
74};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EGameplayDebuggerCategoryState
Definition GameplayDebugger.h:42
Definition Actor.h:257
Definition GameplayDebuggerPlayerManager.h:34
Definition PlayerController.h:261
Definition GameplayDebuggerAddonManager.h:33
Definition GameplayDebuggerCompat.h:17
virtual void NotifyCategoriesChanged()
virtual bool Exec(UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar) override
void AddReplicator(UWorld *InWorld, AGameplayDebuggingReplicator *InReplicator)
virtual void ShutdownModule() override
void RemoveReplicator(UWorld *InWorld, AGameplayDebuggingReplicator *InReplicator)
AGameplayDebuggerPlayerManager & GetPlayerManager(UWorld *World)
bool bNewDebuggerEnabled
Definition GameplayDebuggerCompat.h:65
TArray< TWeakObjectPtr< AGameplayDebuggingReplicator > > & GetAllReplicators(UWorld *InWorld)
virtual void NotifyExtensionsChanged()
void WorldDestroyed(UWorld *InWorld)
virtual void RegisterCategory(FName CategoryName, FOnGetCategory MakeInstanceDelegate, EGameplayDebuggerCategoryState CategoryState=EGameplayDebuggerCategoryState::Disabled, int32 SlotIdx=INDEX_NONE)
void OnWorldInitialized(UWorld *World, const UWorld::InitializationValues IVS)
virtual void StartupModule() override
virtual void UnregisterCategory(FName CategoryName)
virtual void UseNewGameplayDebugger()
virtual void UnregisterExtension(FName ExtensionName)
void WorldAdded(UWorld *InWorld)
TMap< TWeakObjectPtr< UWorld >, TWeakObjectPtr< AGameplayDebuggerPlayerManager > > PlayerManagers
Definition GameplayDebuggerCompat.h:67
FGameplayDebuggerAddonManager AddonManager
Definition GameplayDebuggerCompat.h:66
virtual void RegisterExtension(FName ExtensionName, IGameplayDebugger::FOnGetExtension MakeInstanceDelegate)
Definition MultiBoxBuilder.h:310
Definition NameTypes.h:617
Definition OutputDevice.h:133
Definition CoreMisc.h:28
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition SharedPointer.h:153
Definition World.h:918
Definition WorldInitializationValues.h:9
Definition WeakObjectPtrTemplates.h:25