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