Hi. I need your help.
I made the Text Render actor dynamically in the BeginPlay method:
TextRenderActor3 = GetWorld()->SpawnActor<ATextRenderActor>(ATextRenderActor::StaticClass(), FVector(1001.f, 250.f, -200.f), FRotator(0.f, 0.f, 0.f));
TextRenderActor3->GetTextRender()->SetText(FText::FromString(TEXT("Name: This is a text in my application.")));
TextRenderActor3->GetTextRender()->SetTextRenderColor(FColor::White);
TextRenderActor3->GetTextRender()->SetTextMaterial(InfoText2Material);
TextRenderActor3->GetTextRender()->SetFont(InfoText2Font);
TextRenderActor3->GetTextRender()->SetVerticalAlignment(EVRTA_TextBottom);
TextRenderActor3->GetTextRender()->SetHorizontalAlignment(EHTA_Left);
TextRenderActor3->SetActorScale3D(FVector(1.f, 1.71f, 1.71f));
In the Tick method I move the text with the SetActorLocationAndRotation method:
TextRenderActor3->SetActorLocationAndRotation(FVector(1001.f, TextRenderActor3YLocation++, -200.f), FRotator(0.f, 0.f, 0.f), false, 0, ETeleportType::None);
The problem is… My text quality is bad when it moves. It looks good without being moved.
What am I doing wrong? How can I do it better? Thanks for any advice and suggestions.
