FSlateDrawElement::MakeCubicBezierSpline

Creates a Bezier Spline element

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 MakeCubicBezierSpline
(
    FSlateWindowElementList & ElementList,
    uint32 InLayer,
    const FPaintGeometry & PaintGeometry,
    const FVector2D & P0,
    const FVector2D & P1,
    const FVector2D & P2,
    const FVector2D & P3,
    float InThickness,
    ESlateDrawEffect InDrawEffects,
    const FLinearColor & InTint
)

Remarks

Creates a Bezier Spline element

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

InStart

The start point of the spline (local space)

InStartDir

The direction of the spline from the start point

InEnd

The end point of the spline (local space)

InEndDir

The direction of the spline to the end point

InDrawEffects

Optional draw effects to apply

InTint

Color to tint the element

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