engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
UScaleBox类 参考

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.

成员函数说明

◆ Serialize()

virtual void UScaleBox::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UObject .

◆ SynchronizeProperties()

virtual void UScaleBox::SynchronizeProperties ( )
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 .

类成员变量说明

◆ IgnoreInheritedScale

bool UScaleBox::IgnoreInheritedScale

Optional bool to ignore the inherited scale.

Applies inverse scaling to counteract parents before applying the local scale operation.

◆ UserSpecifiedScale

float UScaleBox::UserSpecifiedScale

Optional scale that can be specified by the User.

Used only for UserSpecified stretching.


该类的文档由以下文件生成: