FSlateGradientStop::FSlateGradientStop

Construct a Gradient Stop from a Position and a Color.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Rendering/DrawElementPayloads.h"

Syntax

FSlateGradientStop
(
    const FVector2D & InPosition,
    const FLinearColor & InColor
)

Remarks

Construct a Gradient Stop from a Position and a Color.

Parameters

Parameter

Description

InPosition

The position in widget space for this stop. Both X and Y are used for a single-axis gradient. A two stop gradient should go from (0,0), to (Width,Height).

InColor

The color to lerp towards at this stop.

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