UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DisplayDebugHelpers.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"
6
7// Tracks what debug information we have switched on
9{
10private:
11
12 TArray<FName> DisplayNames;
13 TArray<FName> ToggledCategories;
14
15public:
16
18
19 bool IsDisplayOn(FName DisplayName) const { return DisplayNames.Contains(DisplayName); }
20 bool IsCategoryToggledOn(FName Category, bool bDefaultsToOn) const { return ToggledCategories.Contains(Category) != bDefaultsToOn; }
21 int32 NumDisplayNames() const { return DisplayNames.Num(); }
22};
23
24// Simple object to track scope indentation
26{
27 float& Indent;
28
29public:
30 FIndenter(float& InIndent) : Indent(InIndent) { Indent += 4.0f; }
31 ~FIndenter() { Indent -= 4.0f; }
32};
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
Definition DisplayDebugHelpers.h:9
bool IsCategoryToggledOn(FName Category, bool bDefaultsToOn) const
Definition DisplayDebugHelpers.h:20
FDebugDisplayInfo(const TArray< FName > &InDisplayNames, const TArray< FName > &InToggledCategories)
Definition DisplayDebugHelpers.h:17
int32 NumDisplayNames() const
Definition DisplayDebugHelpers.h:21
bool IsDisplayOn(FName DisplayName) const
Definition DisplayDebugHelpers.h:19
Definition DisplayDebugHelpers.h:26
~FIndenter()
Definition DisplayDebugHelpers.h:31
FIndenter(float &InIndent)
Definition DisplayDebugHelpers.h:30
Definition NameTypes.h:617
Definition Array.h:670
UE_REWRITE SizeType Num() const
Definition Array.h:1144
bool Contains(const ComparisonType &Item) const
Definition Array.h:1518