Because the new version may take a while until is released, I tried to manually apply that fix, but it only seem to work for Editable Text
and doesn’t fix the issue with Text Box
and Combo Box String
. If I get a working solution even for modifying the source code, I’ll post an update, or maybe someone else has a fix for it already.
//Edit1:
I tried to make the following changes for Text Box
, but now when Set Style
is called, the text is replaced by:
If I copy that and paste it somewhere else (like in Notepad
), then the text is correct, so I think it might lose the font or something.
- In
EditableTextBox.cpp
I added:
void UEditableTextBox::SetWidgetStyle(const FEditableTextBoxStyle& InEditableTextBoxStyle) {
WidgetStyle = InEditableTextBoxStyle;
if (MyEditableTextBlock.IsValid()) {
MyEditableTextBlock->SetStyle(&WidgetStyle);
}
}
- In
EditableTextBox.h
I changed:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Appearance, meta=(DisplayName="Style", ShowOnlyInnerProperties))
to
UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, Category = Appearance, meta = (DisplayName = "Style", ShowOnlyInnerProperties))
And added:
void SetWidgetStyle(const FEditableTextBoxStyle& InEditableTextBoxStyle);