Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Rendering > API/Runtime/SlateCore/Rendering/FSlateDrawElement
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElementTypes.h |
| Include | #include "Rendering/DrawElementTypes.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElementTypes.cpp |
static void MakeCustom
&40;
FSlateWindowElementList & ElementList,
uint32 InLayer,
TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer
&41;
Remarks
Creates a custom element which can be used to manually draw into the Slate render target with graphics API calls rather than Slate elements
Parameters
| Name | Description |
|---|---|
| ElementList | The list in which to add elements |
| InLayer | The layer to draw the element on |
| PaintGeometry | DrawSpace position and dimensions; see FPaintGeometry |
| CustomDrawer | Interface to a drawer which will be called when Slate renders this element |