Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint
Inheritance Hierarchy
- UEngineSubsystem
- UGameViewportSubsystem
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/GameViewportSubsystem.h |
| Include | #include "Blueprint/GameViewportSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UGameViewportSubsystem : public UEngineSubsystem
Variables
| Type | Name | Description | |
|---|---|---|---|
| FWidgetAddedEvent | OnWidgetAdded | ||
| FWidgetRemovedEvent | OnWidgetRemoved |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddWidget
(
UWidget* Widget, |
Adds it to the game's viewport. | |
| bool | AddWidgetForPlayer
(
UWidget* Widget, |
Adds the widget to the game's viewport in the section dedicated to the player. | |
| void | Deinitialize () |
||
| UGameViewportSubsystem * | Get () |
||
| UGameViewportSubsystem * | Get
(
UWorld* World |
||
| FGameViewportWidgetSlot | GetWidgetSlot
(
const UWidget* Widget |
The slot info from previously added widget or info that is store for later. | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
||
| bool | IsWidgetAdded
(
const UWidget* Widget |
||
| void | RemoveWidget
(
UWidget* Widget |
Removes the widget from the viewport. | |
| void | SetWidgetSlot
(
UWidget* Widget, |
Update the slot info of a previously added widget or Store the slot info for later use. | |
| FGameViewportWidgetSlot | SetWidgetSlotDesiredSize
(
FGameViewportWidgetSlot Slot, |
Helper function to set the desired size in the viewport for the Slot. | |
| FGameViewportWidgetSlot | SetWidgetSlotPosition
(
FGameViewportWidgetSlot Slot, |
Helper function to set the position in the viewport for the Slot. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FWidgetAddedEvent | |||
| FWidgetRemovedEvent |
Typedefs
| Name | Description |
|---|---|
| FViewportWidgetList |