SlateDebugger.Break.OnWidgetInvalidation

SlateDebugger.Break.OnWidgetInvalidation

#Overview

name: SlateDebugger.Break.OnWidgetInvalidation

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/SlateCore/Private/Debugging/ConsoleSlateDebuggerBreak.cpp:19

Scope (from outer to inner):

file
function     FConsoleSlateDebuggerBreak::FConsoleSlateDebuggerBreak

Source code excerpt:


FConsoleSlateDebuggerBreak::FConsoleSlateDebuggerBreak()
	: WidgetInvalidationCommand(TEXT("SlateDebugger.Break.OnWidgetInvalidation"),
		TEXT("Break when the widget get invalidated (must be attached to a debugger).\n")
		TEXT("Usage: [WidgetPtr=0x1234567]|[WidgetId=12345] [Reason=Paint|Volatility|ChildOrder|RenderTransform|Visibility|AttributeRegistration|Prepass|All|]"),
		FConsoleCommandWithArgsDelegate::CreateRaw(this, &FConsoleSlateDebuggerBreak::HandleBreakOnWidgetInvalidation))
	, WidgetBeginPaintCommand(TEXT("SlateDebugger.Break.OnWidgetBeginPaint"),
		TEXT("Break before the widget get painted (must be attached to a debugger).\n")
		TEXT("Usage: [WidgetPtr=0x1234567]|[WidgetId=12345]"),

#Loc: <Workspace>/Engine/Source/Runtime/SlateCore/Private/Debugging/ConsoleSlateDebuggerBreak.h:17

Scope: file

Source code excerpt:

 * Allows debugging events from the console.
 * Basics:
 *   SlateDebugger.Break.OnWidgetInvalidation [WidgetPtr=0x123456789] [WidgetId=123456] [Reason=All]
 *   SlateDebugger.Break.OnWidgetPaint [WidgetPointer=0x123456789] [WidgetId=123456]
 */
class FConsoleSlateDebuggerBreak
{
public:
	FConsoleSlateDebuggerBreak();
	~FConsoleSlateDebuggerBreak();

	void AddInvalidation(const SWidget& Widget, EInvalidateWidgetReason Reason);
	void RemoveInvalidation(const SWidget& Widget);