Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/ISlateViewport
Description
Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality. This is only called if the widget is visible
| Name | OnDrawViewport |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h |
| Include Path | #include "Rendering/RenderingCommon.h" |
virtual void OnDrawViewport
(
const FGeometry & AllottedGeometry,
const FSlateRect & MyCullingRect,
class FSlateWindowElementList & OutDrawElements,
int32 LayerId,
const FWidgetStyle & InWidgetStyle,
bool bParentEnabled
)
Parameters
| Name | Remarks |
|---|---|
| AllottedGeometry | The geometry of the viewport widget |