Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate > API/Runtime/Engine/Slate/FSceneViewport
- 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 |
virtual void OnDrawViewport
&40;
const FGeometry & AllottedGeometry,
const FSlateRect & MyCullingRect,
FSlateWindowElementList & OutDrawElements,
int32 LayerId,
const FWidgetStyle & InWidgetStyle,
bool bParentEnabled
&41;
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
| Name | Description |
|---|---|
| AllottedGeometry | The geometry of the viewport widget |