FSceneViewport::OnDrawViewport

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

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

ISlateViewport::OnDrawViewport()

FSceneViewport::OnDrawViewport()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp

Syntax

virtual void OnDrawViewport
(
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyCullingRect,
    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