UCanvas::DrawDebugGraph

Draws a graph comparing 2 variables. Useful for visual debugging and tweaking.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

virtual void DrawDebugGraph
(
    const FString & Title,
    float ValueX,
    float ValueY,
    float UL_X,
    float UL_Y,
    float W,
    float H,
    FVector2D RangeX,
    FVector2D RangeY
)

Remarks

Draws a graph comparing 2 variables. Useful for visual debugging and tweaking.

Parameters

Parameter

Description

Title

Label to draw on the graph, or "" for none

ValueX

X-axis value of the point to plot

ValueY

Y-axis value of the point to plot

UL_X

X screen coord of the upper-left corner of the graph

UL_Y

Y screen coord of the upper-left corner of the graph

W

Width of the graph, in pixels

H

Height of the graph, in pixels

RangeX

Range of values expressed by the X axis of the graph

RangeY

Range of values expressed by the Y axis of the graph

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss