UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ConsoleSlateDebuggerUpdate.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
6
#include "
Debugging/SlateDebugging.h
"
7
8
#if WITH_SLATE_DEBUGGING
9
10
#include "
CoreMinimal.h
"
11
#include "
Debugging/ConsoleSlateDebuggerUtility.h
"
12
#include "
Delegates/Delegate.h
"
13
#include "
Input/Reply.h
"
14
#include "
HAL/IConsoleManager.h
"
15
#include "
Rendering/DrawElements.h
"
16
#include "
FastUpdate/WidgetUpdateFlags.h
"
17
18
struct
FGeometry
;
19
class
FPaintArgs
;
20
class
FSlateWindowElementList
;
21
class
SWidget
;
22
29
class
FConsoleSlateDebuggerUpdate
30
{
31
public
:
32
FConsoleSlateDebuggerUpdate
();
33
virtual
~FConsoleSlateDebuggerUpdate
();
34
35
void
StartDebugging
();
36
void
StopDebugging
();
37
bool
IsEnabled
()
const
{
return
bEnabled; }
38
39
void
ToggleDisplayLegend
();
40
void
ToogleDisplayWidgetNameList
();
41
void
ToogleDisplayUpdateFromPaint
();
42
43
void
SaveConfig();
44
45
private
:
46
void
HandleEnabled
(
IConsoleVariable
*
Variable
);
47
void
HandleSetWidgetUpdateFlagsFilter
(
const
TArray<FString>
& Params);
48
49
void
HandleEndFrame
();
50
void
HandlePaintDebugInfo
(
const
FPaintArgs
& InArgs,
const
FGeometry
&
InAllottedGeometry
,
FSlateWindowElementList
&
InOutDrawElements
,
int32
&
InOutLayerId
);
51
void
HandleWidgetUpdate
(
const
FSlateDebuggingWidgetUpdatedEventArgs
& Args);
52
53
private
:
54
bool
bEnabled;
55
bool
bEnabledCVarValue
;
56
57
//~ Settings
58
bool
bDisplayWidgetsNameList
;
59
bool
bUseWidgetPathAsName
;
60
bool
bDisplayUpdateFromPaint
;
61
bool
bShowLegend
;
62
bool
bShowQuad
;
63
bool
bDebugGameWindowOnly
;
64
EWidgetUpdateFlags
WidgetUpdateFlagsFilter
;
65
FLinearColor
DrawVolatilePaintColor
;
66
FLinearColor
DrawRepaintColor
;
67
FLinearColor
DrawTickColor
;
68
FLinearColor
DrawActiveTimerColor
;
69
FLinearColor
DrawWidgetNameColor
;
70
int32
MaxNumberOfWidgetInList
;
71
int32
InvalidationRootIdFilter
;
72
float
CacheDuration
;
73
FName
PIEWindowTag
;
74
75
//~ Console objects
76
FAutoConsoleCommand
StartCommand
;
77
FAutoConsoleCommand
StopCommand
;
78
FAutoConsoleVariableRef
EnabledRefCVar
;
79
FAutoConsoleCommand
ToggleLegendCommand
;
80
FAutoConsoleCommand
ToogleWidgetsNameListCommand
;
81
FAutoConsoleCommand
ToogleDisplayUpdateFromPaintCommand
;
82
FAutoConsoleCommand
SetWidgetUpdateFlagsFilterCommand
;
83
FAutoConsoleVariableRef
InvalidationRootFilterRefCVar
;
84
FAutoConsoleVariableRef
OnlyGameWindow
;
85
86
struct
FWidgetInfo
87
{
88
FWidgetInfo
(
const
SWidget
*
Widget
,
EWidgetUpdateFlags
InUpdateFlags
);
89
void
Update
(
const
SWidget
*
Widget
,
EWidgetUpdateFlags
InUpdateFlags
);
90
91
FConsoleSlateDebuggerUtility::TSWindowId
WindowId
;
92
FVector2f
PaintLocation
;
93
FVector2f
PaintSize
;
94
FString WidgetName;
95
EWidgetUpdateFlags
UpdateFlags
;
96
double
LastInvalidationTime
;
97
};
98
99
using
TWidgetMap
=
TMap<FConsoleSlateDebuggerUtility::TSWidgetId, FWidgetInfo>
;
100
TWidgetMap
UpdatedWidgets
;
101
};
102
103
#endif
//WITH_SLATE_DEBUGGING
ConsoleSlateDebuggerUtility.h
CoreMinimal.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
Delegate.h
DrawElements.h
IConsoleManager.h
EMultiBlockType::Widget
@ Widget
EChaosSolverTickMode::Variable
@ Variable
EAccelerationStructureBuildMode::Update
@ Update
Reply.h
SlateDebugging.h
WidgetUpdateFlags.h
EWidgetUpdateFlags
EWidgetUpdateFlags
Definition
WidgetUpdateFlags.h:9
FAutoConsoleCommand
Definition
IConsoleManager.h:2026
FAutoConsoleVariableRef
Definition
IConsoleManager.h:1580
FName
Definition
NameTypes.h:617
FPaintArgs
Definition
PaintArgs.h:23
FSlateWindowElementList
Definition
DrawElements.h:220
IConsoleVariable
Definition
IConsoleManager.h:558
SWidget
Definition
SWidget.h:165
TArray
Definition
Array.h:670
TMap
Definition
UnrealString.h.inl:34
UpdateFlags
UpdateFlags
Definition
DetourCrowd.h:208
AudioLinkFactory_Private::IsEnabled
bool IsEnabled()
Definition
IAudioLinkFactory.cpp:13
FGeometry
Definition
Geometry.h:40
FLinearColor
Definition
Color.h:48
FSlateDebuggingWidgetUpdatedEventArgs
Definition
SlateDebugging.h:260
UE::Math::TVector2< float >
Engine
Source
Runtime
SlateCore
Private
Debugging
ConsoleSlateDebuggerUpdate.h
Generated by
1.9.8