![]() MyTextBlock-> SetShadowOffset( ShadowOffset ) MyTextBlock-> SetColorAndOpacity( ColorAndOpacityBinding ) MyTextBlock-> SetStrikeBrush( &StrikeBrush ) TAttribute ShadowColorAndOpacityBinding = PROPERTY_BINDING(FLinearColor, ShadowColorAndOpacity) TAttribute ColorAndOpacityBinding = PROPERTY_BINDING(FSlateColor, ColorAndOpacity) TAttribute TextBinding = GetDisplayText() Void UTextBlock::SynchronizeProperties () Unfortunately, the variable is not directly used for wrapping text, but used for saving the value of option. We can see the option as the class UTextBlock inherites UTextLayoutWidget. The option is loacted in the class UTextLayoutWidget. UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Wrapping) ** True if we're wrapping text automatically based on the computed horizontal space for this widget. Contrary, the TextBlock lower has the option turned off. The TextBlock upper has the option turned on. How does it possible ? What is the implementation of that option ? Let us find out it in this post. ![]() For general cases of text, even the option works within very short time, almost 1 tick. ![]() Thanks to the option, we can display a text without concerning about breaking lines. A TextBlock has an option AutoWrapText and the option makes the TextBlock can wrap its text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |