Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h |
Include |
#include "Engine/GameViewportClient.h" |
Source |
/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp |
virtual void AddViewportWidgetForPlayer
(
ULocalPlayer * Player,
TSharedRef< SWidget > ViewportContent,
const int32 ZOrder
)
Adds a widget to the Slate viewport's overlay (i.e for in game UI or tools) at the specified Z-order. associates it with a specific player and keeps it in their sub-rect.
Parameter |
Description |
---|---|
Player |
The player to add the widget to. |
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. |