unreal.WidgetDesignTimeInfo

class unreal.WidgetDesignTimeInfo(preview_size: Vector2D = Ellipsis, is_portrait: bool = False)

Bases: StructBase

Design-time preview information from the UMG Designer. Contains the current designer preview dimensions and derived orientation. Only populated at design time — all values are zeroed/false at runtime.

C++ Source:

  • Module: UMG

  • File: WidgetLayoutLibrary.h

Editor Properties: (see get_editor_property/set_editor_property)

  • is_portrait (bool): [Read-Write] True when the designer preview is in portrait orientation (height > width).

  • preview_size (Vector2D): [Read-Write] The current preview dimensions in the UMG Designer (width x height).

property is_portrait: bool

[Read-Only] True when the designer preview is in portrait orientation (height > width).

Type:

(bool)

property preview_size: Vector2D

[Read-Only] The current preview dimensions in the UMG Designer (width x height).

Type:

(Vector2D)