UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GameplayDebuggerPlayerManager.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "Tickable.h"
9#include "GameplayDebuggerPlayerManager.generated.h"
10
14class UInputComponent;
15class AGameModeBase;
16
17USTRUCT()
31
32UCLASS(NotBlueprintable, NotBlueprintType, notplaceable, noteditinlinenew, hidedropdown, Transient, MinimalAPI)
34{
36
37 GAMEPLAYDEBUGGER_API virtual void TickActor(float DeltaTime, enum ELevelTick TickType, FActorTickFunction& ThisTickFunction) override;
38
39 // we're ticking only the manager only when in editor
40 // FTickableGameObject begin
41 virtual UWorld* GetTickableGameObjectWorld() const override { return GetWorld(); }
42 GAMEPLAYDEBUGGER_API virtual void Tick(float DeltaTime) override;
43 GAMEPLAYDEBUGGER_API virtual ETickableTickType GetTickableTickType() const override;
44 GAMEPLAYDEBUGGER_API virtual TStatId GetStatId() const override;
45 virtual bool IsTickableInEditor() const override { return true; }
47 virtual bool IsTickable() const override { return bEditorTimeTick; }
48 // FTickableGameObject end
49
50 GAMEPLAYDEBUGGER_API virtual void PostInitProperties() override;
51
52protected:
53 GAMEPLAYDEBUGGER_API virtual void BeginPlay() override;
54
55 GAMEPLAYDEBUGGER_API void OnReplayScrubTeardown(UWorld* InWorld);
56 GAMEPLAYDEBUGGER_API void OnGameModeLogout(AGameModeBase* GameMode, AController* Exiting);
57
58public:
59 GAMEPLAYDEBUGGER_API virtual void BeginDestroy() override;
60 GAMEPLAYDEBUGGER_API virtual void EndPlay(const EEndPlayReason::Type Reason) override;
62
63 GAMEPLAYDEBUGGER_API void UpdateAuthReplicators();
64 GAMEPLAYDEBUGGER_API void RegisterReplicator(AGameplayDebuggerCategoryReplicator& Replicator);
65 GAMEPLAYDEBUGGER_API void RefreshInputBindings(AGameplayDebuggerCategoryReplicator& Replicator);
66
68 GAMEPLAYDEBUGGER_API UInputComponent* GetInputComponent(const APlayerController& OwnerPC) const;
69 GAMEPLAYDEBUGGER_API UGameplayDebuggerLocalController* GetLocalController(const APlayerController& OwnerPC) const;
70#if WITH_EDITOR
72#endif // WITH_EDITOR
73
74 GAMEPLAYDEBUGGER_API const FGameplayDebuggerPlayerData* GetPlayerData(const APlayerController& OwnerPC) const;
75
77
79 static GAMEPLAYDEBUGGER_API void GetViewPoint(const APlayerController& OwnerPC, FVector& OutViewLocation, FVector& OutViewDirection);
80
81protected:
82
83 UPROPERTY()
85
86 UPROPERTY()
88
89#if WITH_EDITORONLY_DATA
90 UPROPERTY()
92#endif // WITH_EDITORONLY_DATA
93
98};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ELevelTick
Definition EngineBaseTypes.h:70
void Init()
Definition LockFreeList.h:4
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
ETickableTickType
Definition Tickable.h:20
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Actor.h:257
Definition Controller.h:41
Definition GameplayDebuggerCategoryReplicator.h:119
Definition GameplayDebuggerPlayerManager.h:34
uint32 bInitialized
Definition GameplayDebuggerPlayerManager.h:97
uint32 bIsLocal
Definition GameplayDebuggerPlayerManager.h:96
uint32 bHasAuthority
Definition GameplayDebuggerPlayerManager.h:95
uint8 bEditorTimeTick
Definition GameplayDebuggerPlayerManager.h:94
Definition PlayerController.h:261
Definition Tickable.h:135
Definition Array.h:670
Definition GameplayDebuggerLocalController.h:22
Definition InputComponent.h:729
Definition World.h:918
Type
Definition EngineTypes.h:3431
Definition EngineBaseTypes.h:526
Definition GameplayDebuggerPlayerManager.h:19
Definition ObjectPtr.h:488
Definition LightweightStats.h:416