FGameplayDebuggerCanvasContext

Windows
MacOS
Linux

References

Module

GameplayDebugger

Header

/Engine/Source/Developer/GameplayDebugger/Public/GameplayDebuggerTypes.h

Include

#include "GameplayDebuggerTypes.h"

Syntax

class FGameplayDebuggerCanvasContext

Variables

Name Description

Public variable

TWeakObjectPtr<...

 

Canvas

Canvas used for drawing

Public variable

float

 

CursorX

Position of cursor

Public variable

float

 

CursorY

Public variable

float

 

DefaultX

Default position of cursor

Public variable

float

 

DefaultY

Public variable

TWeakObjectPtr<...

 

Font

Current text font

Public variable

FFontRenderInfo

 

FontRenderInfo

Font render data

Public variable

TWeakObjectPtr<...

 

PlayerController

The player controller associated with this debugger context

Public variable

TWeakObjectPtr<...

 

World

The world associated with this debugger context

Constructors

Name Description

Public function

FGameplayDebuggerCanvasContext()

Public function

FGameplayDebuggerCanvasContext

(
    UCanvas* InCanvas,
    UFont* InFont
)

Functions

Name Description

Public function

void

 

DrawIcon

(
    const FColor& Color,
    const FCanvasIcon& Icon,
    float PosX,
    float PosY,
    float Scale
)

Draw icon on canvas

Public function

void

 

DrawItem

(
    FCanvasItem& Item,
    float PosX,
    float PosY
)

Draw item on canvas

Public function Const

float

 

GetLineHeight()

Get height of single line text

Public function Const

UWorld *

 

GetWorld()

Fetches the World associated with this context.

Public function Const

bool

 

IsLocationVisible

(
    const FVector& Location
)

Check if world location is visible in current view

Public function Const

void

 

MeasureString

(
    const FString& String,
    float& OutSizeX,
    float& OutSizeY
)

Calculate size of string

Public function

void

 

MoveToNewLine()

Moves cursor to new line

Public function

void

 

Print

(
    const FColor& Color,
    const float Alpha,
    const FString& String
)

Print string on canvas

Public function

void

 

Print

(
    const FColor& Color,
    const FString& String
)

Print string on canvas

Public function

void

 

Print

(
    const FString& String
)

Print string on canvas

Public function

void

 

PrintAt

(
    float PosX,
    float PosY,
    const FString& String
)

Print string on canvas

Public function

void

 

PrintAt

(
    float PosX,
    float PosY,
    const FColor& Color,
    const FString& String
)

Print string on canvas

Public function

void

 

PrintAt

(
    float PosX,
    float PosY,
    const FColor& Color,
    const float Alpha,
    const FString& String
)

Print string on canvas

Public function

void

 

Printf

(
    const FmtType& Fmt,
    Types... Args
)

Print formatted string on canvas

Public function

void

 

Printf

(
    const FColor& Color,
    const FmtType& Fmt,
    Types... Args
)

Public function

void

 

Printf

(
    const FColor& Color,
    const float Alpha,
    const FmtType& Fmt,
    Types... Args
)

Public function

void

 

PrintfAt

(
    float PosX,
    float PosY,
    const FmtType& Fmt,
    Types... Args
)

Public function

void

 

PrintfAt

(
    float PosX,
    float PosY,
    const FColor& Color,
    const FmtType& Fmt,
    Types... Args
)

Public function

void

 

PrintfAt

(
    float PosX,
    float PosY,
    const FColor& Color,
    const float Alpha,
    const FmtType& Fmt,
    Types... Args
)

Public function Const

FVector2D

 

ProjectLocation

(
    const FVector& Location
)

Project world location on canvas