Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area. 更多...
#include <ScaleBox.h>
继承自 UContentWidget .
Public 成员函数 | |
| virtual void | Serialize (FArchive &Ar) override |
| Handles reading, writing, and reference collecting using FArchive. 更多... | |
| virtual void | SynchronizeProperties () override |
| Applies all properties to the native widget if possible. 更多... | |
Public 属性 | |
| bool | IgnoreInheritedScale |
| Optional bool to ignore the inherited scale. 更多... | |
| TEnumAsByte< EStretch::Type > | Stretch |
| The stretching rule to apply when content is stretched | |
| TEnumAsByte< EStretchDirection::Type > | StretchDirection |
| Controls in what direction content can be scaled | |
| float | UserSpecifiedScale |
| Optional scale that can be specified by the User. 更多... | |
Protected 成员函数 | |
| virtual TSharedRef< SWidget > | RebuildWidget () override |
| Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | |
Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area.
If you needed to have a background image scale to fill an area but not become distorted with different aspect ratios, or if you need to auto fit some text to an area, this is the control for you.
|
overridevirtual |
|
overridevirtual |
Applies all properties to the native widget if possible.
This is called after a widget is constructed. It can also be called by the editor to update modified state, so ensure all initialization to a widgets properties are performed here, or the property and visual state may become unsynced.
重载 UWidget .
| bool UScaleBox::IgnoreInheritedScale |
Optional bool to ignore the inherited scale.
Applies inverse scaling to counteract parents before applying the local scale operation.
| float UScaleBox::UserSpecifiedScale |
Optional scale that can be specified by the User.
Used only for UserSpecified stretching.