A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgGameplayDebuggerCategory.cpp
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#if WITH_GAMEPLAY_DEBUGGER
4
5#include "DebugRenderSceneProxy.h"
6
7#include "DlgManager.h"
8
9FDlgGameplayDebuggerCategory::FDlgGameplayDebuggerCategory()
10{
11 bShowOnlyWithDebugActor = false;
12}
13
14void FDlgGameplayDebuggerCategory::CollectData(APlayerController* OwnerPC, AActor* DebugActor)
15{
16 Data.NumLoadedDialogues = UDlgManager::GetAllDialoguesFromMemory().Num();
17
18 if (DebugActor)
19 {
20
21 }
22}
23
24void FDlgGameplayDebuggerCategory::DrawData(APlayerController* OwnerPC, FGameplayDebuggerCanvasContext& CanvasContext)
25{
26 CanvasContext.Printf(TEXT("{green}Number loaded Dialogues: %s"), *FString::FromInt(Data.NumLoadedDialogues));
27}
28
29#endif // WITH_GAMEPLAY_DEBUGGER
static TArray< UDlgDialogue * > GetAllDialoguesFromMemory()