UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FGameViewportWidgetSlot Struct Reference

#include <GameViewportSubsystem.h>

Public Attributes

FAnchors Anchors = FAnchors(0.f, 0.f, 1.f, 1.f)
 
FMargin Offsets
 
FVector2D Alignment = FVector2D(0.f, 0.f)
 
int32 ZOrder = 0
 
bool bAutoRemoveOnWorldRemoved = true
 

Detailed Description

The default value fills the entire screen / player region.

Member Data Documentation

◆ Alignment

FVector2D FGameViewportWidgetSlot::Alignment = FVector2D(0.f, 0.f)

◆ Anchors

FAnchors FGameViewportWidgetSlot::Anchors = FAnchors(0.f, 0.f, 1.f, 1.f)

◆ bAutoRemoveOnWorldRemoved

bool FGameViewportWidgetSlot::bAutoRemoveOnWorldRemoved = true

Remove the widget when the Widget's World is removed.

Note
The Widget is added to the GameViewportClient of the Widget's World. The GameViewportClient can migrate from World to World. The widget can stay visible if the owner of the widget also migrate.

◆ Offsets

FMargin FGameViewportWidgetSlot::Offsets

◆ ZOrder

int32 FGameViewportWidgetSlot::ZOrder = 0

The higher the number, the more on top this widget will be.


The documentation for this struct was generated from the following file: