FSlateDrawElement::MakeCustom

Creates a custom element which can be used to manually draw into the Slate render target with graphics API calls rather than Slate elements

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 MakeCustom
(
    FSlateWindowElementList & ElementList,
    uint32 InLayer,
    TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer
)

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

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

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