Setting horizontal alignment was easy. It’s just:
SetHorizontalAlignment(EHorizTextAligment::EHTA_Center);
But how do you set the vertical alignment? I don’t see any SetVerticalAlignment method.
Setting horizontal alignment was easy. It’s just:
SetHorizontalAlignment(EHorizTextAligment::EHTA_Center);
But how do you set the vertical alignment? I don’t see any SetVerticalAlignment method.
Vertical alignment doesn’t have a setter function like horizontal alignment does. Vertical alignment can be set straight into the variable. Horizontal alignment can be done the same way (just using the variable).
YourTextRenderComponent->VerticalAlignment = EVerticalTextAligment::EVRTA_TextCenter;
YourTextRenderComponent->HorizontalAlignment = EHorizTextAligment::EHTA_Left;