unreal.GameViewportWidgetSlot
¶
- class unreal.GameViewportWidgetSlot(anchors: Anchors = Ellipsis, offsets: Margin = Ellipsis, alignment: Vector2D = Ellipsis, z_order: int = 0, auto_remove_on_world_removed: bool = False)¶
Bases:
StructBase
The default value fills the entire screen / player region.
C++ Source:
Module: UMG
File: GameViewportSubsystem.h
Editor Properties: (see get_editor_property/set_editor_property)
alignment
(Vector2D): [Read-Write]anchors
(Anchors): [Read-Write]auto_remove_on_world_removed
(bool): [Read-Write] 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
(Margin): [Read-Write]z_order
(int32): [Read-Write] The higher the number, the more on top this widget will be.
- property auto_remove_on_world_removed: bool¶
[Read-Write] 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.
- Type:
(bool)