unreal.SizeBox
¶
- class unreal.SizeBox(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
ContentWidget
A widget that allows you to specify the size it reports to have and desire. Not all widgets report a desired size that you actually desire. Wrapping them in a SizeBox lets you have the Size Box force them to be a particular size.
Single Child
Fixed Size
C++ Source:
Module: UMG
File: SizeBox.h
Editor Properties: (see get_editor_property/set_editor_property)
accessible_behavior
(SlateAccessibleBehavior): [Read-Write] Accessible Behavior: Whether or not the widget is accessible, and how to describe it. If set to custom, additional customization options will appear.accessible_summary_behavior
(SlateAccessibleBehavior): [Read-Write] Accessible Summary Behavior: How to describe this widget when it’s being presented through a summary of a parent widget. If set to custom, additional customization options will appear.accessible_summary_text
(Text): [Read-Write] Accessible Summary Text: When AccessibleSummaryBehavior is set to Custom, this is the text that will be used to describe the widget.accessible_text
(Text): [Read-Write] Accessible Text: When AccessibleBehavior is set to Custom, this is the text that will be used to describe the widget.can_children_be_accessible
(bool): [Read-Write] Can Children be Accessible: Whether or not children of this widget can appear as distinct accessible widgets.clipping
(WidgetClipping): [Read-Write] Clippingcursor
(MouseCursor): [Read-Write] Cursorflow_direction_preference
(FlowDirectionPreference): [Read-Write] Flow Direction Preferenceheight_override
(float): [Read-Write] Height Overrideis_enabled
(bool): [Read-Write] Is Enabledis_volatile
(bool): [Read-Write] Is Volatile: If true prevents the widget or its child’s geometry or layout information from being cached. If this widget changes every frame, but you want it to still be in an invalidation panel you should make it as volatile instead of invalidating it every frame, which would prevent the invalidation panel from actually ever caching anything.max_aspect_ratio
(float): [Read-Write] Max Aspect Ratiomax_desired_height
(float): [Read-Write] Max Desired Heightmax_desired_width
(float): [Read-Write] Max Desired Widthmin_aspect_ratio
(float): [Read-Write] Min Aspect Ratiomin_desired_height
(float): [Read-Write] Min Desired Heightmin_desired_width
(float): [Read-Write] Min Desired Widthnavigation
(WidgetNavigation): [Read-Write] Navigation: The navigation object for this widget is optionally created if the user has configured custom navigation rules for this widget in the widget designer. Those rules determine how navigation transitions can occur between widgets.override_accessible_defaults
(bool): [Read-Write] Override Accessible Defaults: Override all of the default accessibility behavior and text for this widget.override_cursor
(bool): [Read-Write] Override Cursoroverride_height_override
(bool): [Read-Write] Override Height Overrideoverride_max_aspect_ratio
(bool): [Read-Write] Override Max Aspect Ratiooverride_max_desired_height
(bool): [Read-Write] Override Max Desired Heightoverride_max_desired_width
(bool): [Read-Write] Override Max Desired Widthoverride_min_aspect_ratio
(bool): [Read-Write] Override Min Aspect Ratiooverride_min_desired_height
(bool): [Read-Write] Override Min Desired Heightoverride_min_desired_width
(bool): [Read-Write] Override Min Desired Widthoverride_width_override
(bool): [Read-Write] Override Width Overriderender_opacity
(float): [Read-Write] Render Opacityrender_transform
(WidgetTransform): [Read-Write] Render Transformrender_transform_pivot
(Vector2D): [Read-Write] Render Transform Pivotslot
(PanelSlot): [Read-Write] Slot: The parent slot of the UWidget. Allows us to easily inline edit the layout controlling this widget.tool_tip_text
(Text): [Read-Write] Tool Tip Texttool_tip_widget
(Widget): [Read-Only] Tool Tip Widgetvisibility
(SlateVisibility): [Read-Write] Visibilitywidth_override
(float): [Read-Write] Width Override
- set_height_override(height_override) None ¶
When specified, ignore the content’s desired size and report the HeightOverride as the Box’s desired height.
- Parameters:
height_override (float) –
- set_max_aspect_ratio(max_aspect_ratio) None ¶
Set Max Aspect Ratio
- Parameters:
max_aspect_ratio (float) –
- set_max_desired_height(max_desired_height) None ¶
When specified, will report the MaxDesiredHeight if smaller than the content’s desired height.
- Parameters:
max_desired_height (float) –
- set_max_desired_width(max_desired_width) None ¶
When specified, will report the MaxDesiredWidth if smaller than the content’s desired width.
- Parameters:
max_desired_width (float) –
- set_min_aspect_ratio(min_aspect_ratio) None ¶
Set Min Aspect Ratio
- Parameters:
min_aspect_ratio (float) –
- set_min_desired_height(min_desired_height) None ¶
When specified, will report the MinDesiredHeight if larger than the content’s desired height.
- Parameters:
min_desired_height (float) –
- set_min_desired_width(min_desired_width) None ¶
When specified, will report the MinDesiredWidth if larger than the content’s desired width.
- Parameters:
min_desired_width (float) –