UGameViewportClient::AddViewportWidgetContent

Adds a widget to the Slate viewport's overlay (i.e for in game UI or tools) at the specified Z-order

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

virtual void AddViewportWidgetContent
(
    TSharedRef< class SWidget > ViewportContent,
    const int32 ZOrder
)

Remarks

Adds a widget to the Slate viewport's overlay (i.e for in game UI or tools) at the specified Z-order

Parameters

Parameter

Description

ViewportContent

The widget to add. Must be valid.

ZOrder

The Z-order index for this widget. Larger values will cause the widget to appear on top of widgets with lower values.

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