Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateDrawElement
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void MakeDashedLines
(
FSlateWindowElementList& ElementList, |
Creates a dashed or dotted line defined by the provided points. | Rendering/DrawElementTypes.h | |
static void MakeDashedLines
(
FSlateWindowElementList& ElementList, |
Creates a dashed or dotted line defined by the provided points. | Rendering/DrawElementTypes.h |
MakeDashedLines(FSlateWindowElementList &, uint32, const FPaintGeometry &, TArray< FVector2f > &&, ESlateDrawEffect, const FLinearColor &, float, float, float)
Description
Creates a dashed or dotted line defined by the provided points. Such lines are always renderd using the anti-aliased shader method.
| Name | MakeDashedLines |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElementTypes.h |
| Include Path | #include "Rendering/DrawElementTypes.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElementTypes.cpp |
static void MakeDashedLines
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
TArray < FVector2f > && Points,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint,
float Thickness,
float DashLengthPx,
float DashScreenOffset
)
Parameters
| Name | Remarks |
|---|---|
| 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 |
| Thickness | The thickness of the line |
| DashLengthPx | The screen-space length of each dash (and each gap - irregular spacings are not supported) |
| DashScreenOffset | A screen space offset that can be used to 'anchor' dashes to prevent them sliding when moving lines drawn in a virtual space. |
MakeDashedLines(FSlateWindowElementList &, uint32, const FPaintGeometry &, TArray< FVector2f > &&, TArray< FLinearColor > &&, ESlateDrawEffect, const FLinearColor &, float, float, float)
Description
Creates a dashed or dotted line defined by the provided points. Such lines are always renderd using the anti-aliased shader method.
| Name | MakeDashedLines |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElementTypes.h |
| Include Path | #include "Rendering/DrawElementTypes.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElementTypes.cpp |
static void MakeDashedLines
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
TArray < FVector2f > && Points,
TArray < FLinearColor > && PointColors,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint,
float Thickness,
float DashLengthPx,
float DashScreenOffset
)
Parameters
| Name | Remarks |
|---|---|
| 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 |
| PointColors | Vertex Color for each defined points |
| InDrawEffects | Optional draw effects to apply |
| InTint | Color to tint the element |
| Thickness | The thickness of the line |
| DashLengthPx | The screen-space length of each dash (and each gap - irregular spacings are not supported) |
| DashScreenOffset | A screen space offset that can be used to 'anchor' dashes to prevent them sliding when moving lines drawn in a virtual space. |