Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h |
Include |
#include "Rendering/DrawElements.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp |
static void MakeCustom
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer
)
Creates a custom element which can be used to manually draw into the Slate render target with graphics API calls rather than Slate elements
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 |
CustomDrawer |
Interface to a drawer which will be called when Slate renders this element |