FSlateDrawElement::MakeLines

Creates a line defined by the provided points

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h

Include

#include "Rendering/DrawElements.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp

Syntax

static void MakeLines
(
    FSlateWindowElementList & ElementList,
    uint32 InLayer,
    const FPaintGeometry & PaintGeometry,
    const TArray< FVector2D > & Points,
    const TArray< FLinearColor > & PointColors,
    ESlateDrawEffect InDrawEffects,
    const FLinearColor & InTint,
    bool bAntialias,
    float Thickness
)

Remarks

Creates a line defined by the provided points

Parameters

Parameter

Description

ElementList

The list in which to add elements

InLayer

The layer to draw the element on

PaintGeometry

DrawSpace position and dimensions; see FPaintGeometry

Points

Points that make up the lines. The points are joined together. I.E if Points has A,B,C there the line is A-B-C. To draw non-joining line segments call MakeLines multiple times

InDrawEffects

Optional draw effects to apply

InTint

Color to tint the element

bAntialias

Should antialiasing be applied to the line?

Thickness

The thickness of the line

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