UCanvas::K2_DrawBox

Draws an unfilled box on the Canvas.

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

void K2_DrawBox
(
    FVector2D ScreenPosition,
    FVector2D ScreenSize,
    float Thickness,
    FLinearColor RenderColor
)

Remarks

Draws an unfilled box on the Canvas.

Parameters

Parameter

Description

ScreenPosition

Screen space position to render the text.

ScreenSize

Screen space size to render the texture.

Thickness

How many pixels thick the box lines should be.

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