ISlateViewport::OnDrawViewport

Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality.

Windows
MacOS
Linux

Override Hierarchy

ISlateViewport::OnDrawViewport()

FSceneViewport::OnDrawViewport()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

virtual void OnDrawViewport
(
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyCullingRect,
    class FSlateWindowElementList & OutDrawElements,
    int32 LayerId,
    const FWidgetStyle & InWidgetStyle,
    bool bParentEnabled
)

Remarks

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

Parameters

Parameter

Description

AllottedGeometry

The geometry of the viewport widget

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