UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GameplayDebuggerExtension.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// GAMEPLAY DEBUGGER EXTENSION
4//
5// Extensions allows creating additional key bindings for gameplay debugger.
6// For example, you can use them to add another way of selecting actor to Debug.
7//
8// Replication is limited only to handling input events and tool state events,
9// it's not possible to send variables or RPC calls
10//
11// It should be compiled and used only when module is included, so every extension class
12// needs be placed in #if WITH_GAMEPLAY_DEBUGGER block.
13//
14// Extensions needs to be manually registered and unregistered with GameplayDebugger.
15// It's best to do it in owning module's Startup / Shutdown, similar to detail view customizations.
16
17#pragma once
18
20#include "CoreMinimal.h"
22
24
26{
27public:
28
32
34 GAMEPLAYDEBUGGER_API virtual FString GetDescription() const;
35
37 GAMEPLAYDEBUGGER_API virtual void OnActivated();
38
41
43 GAMEPLAYDEBUGGER_API bool IsLocal() const;
44
45protected:
46
49};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition PlayerController.h:261
Definition GameplayDebuggerAddonBase.h:14
Definition GameplayDebuggerExtension.h:26
GAMEPLAYDEBUGGER_API bool IsLocal() const
Definition GameplayDebuggerExtension.cpp:46
virtual GAMEPLAYDEBUGGER_API FString GetDescription() const
Definition GameplayDebuggerExtension.cpp:34
virtual ~FGameplayDebuggerExtension()
Definition GameplayDebuggerExtension.h:29
GAMEPLAYDEBUGGER_API APlayerController * GetPlayerController() const
Definition GameplayDebuggerExtension.cpp:40
virtual GAMEPLAYDEBUGGER_API void OnDeactivated()
Definition GameplayDebuggerExtension.cpp:29
virtual GAMEPLAYDEBUGGER_API void OnActivated()
Definition GameplayDebuggerExtension.cpp:24
virtual GAMEPLAYDEBUGGER_API void OnGameplayDebuggerActivated() override
Definition GameplayDebuggerExtension.cpp:6
virtual GAMEPLAYDEBUGGER_API void OnGameplayDebuggerDeactivated() override
Definition GameplayDebuggerExtension.cpp:15