Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEngineSubsystem
- UGameViewportSubsystem
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Blueprint/GameViewportSubsystem.h |
Include | #include "Blueprint/GameViewportSubsystem.h" |
Syntax
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. |
![]() ![]() |
UGameViewportSubsystem * | Get () |
|
![]() ![]() |
UGameViewportSubsystem * | ||
![]() ![]() |
FGameViewportWidgetSlot | GetWidgetSlot
(
const UWidget* Widget |
The slot info from previously added widget or info that is store for later. |
![]() ![]() |
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. |
Overridden from USubsystem
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Deinitialize () |
Implement this for deinitialization of instances of the system |
![]() ![]() |
void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FWidgetAddedEvent | ||
![]() |
FWidgetRemovedEvent |
Typedefs
Name | Description |
---|---|
FViewportWidgetList |