Navigation
API > API/Runtime > API/Runtime/GameplayDebugger
References
| Module | GameplayDebugger |
| Header | /Engine/Source/Runtime/GameplayDebugger/Public/GameplayDebuggerTypes.h |
| Include | #include "GameplayDebuggerTypes.h" |
Syntax
class FGameplayDebuggerCanvasContext
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakObjectPtr< UCanvas > | Canvas | Canvas used for drawing | |
| float | CursorX | Position of cursor | |
| float | CursorY | ||
| float | DefaultX | Default position of cursor | |
| float | DefaultY | ||
| TWeakObjectPtr< UFont > | Font | Current text font | |
| FFontRenderInfo | FontRenderInfo | Font render data | |
| TWeakObjectPtr< APlayerController > | PlayerController | The player controller associated with this debugger context | |
| TWeakObjectPtr< UWorld > | World | The world associated with this debugger context |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGameplayDebuggerCanvasContext
(
UCanvas* InCanvas, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DrawIcon
(
const FColor& Color, |
Draw icon on canvas | |
| void | DrawItem
(
FCanvasItem& Item, |
Draw item on canvas | |
| float | Get height of single line text | ||
| UWorld * | GetWorld () |
Fetches the World associated with this context. | |
| bool | IsLocationVisible
(
const FVector& Location |
Check if world location is visible in current view | |
| void | MeasureString
(
const FString& String, |
Calculate size of string | |
| void | Moves cursor to new line | ||
| void | Print string on canvas | ||
| void | Print string on canvas | ||
| void | Print string on canvas | ||
| void | Print string on canvas | ||
| void | Print string on canvas | ||
| void | Print string on canvas | ||
| void | Printf
(
const FmtType& Fmt, |
Print formatted string on canvas | |
| void | |||
| void | |||
| void | PrintfAt
(
float PosX, |
||
| void | |||
| void | |||
| FVector2D | ProjectLocation
(
const FVector& Location |
Project world location on canvas |