unreal.WidgetDesignTimeInfo¶
- class unreal.WidgetDesignTimeInfo(preview_size: Vector2D = Ellipsis, is_portrait: bool = False)¶
Bases:
StructBaseDesign-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).