UTextRenderComponent updated only when moving?

Hi,

I have defined a UTextRenderComponent component above the head of a pawn to display its name.

My problem is that when i change its text value (through Text=“value” or the SetText function), the new name is displayed only when the pawn is moved.

Is there a way to update the component even when the pawn remains still ?

I have tried to add a tiny motion (with eg: AddMovementInput(FVector(1.f, 0.f, 0.f,), 0.001f) ).

It works, but it’s really ugly.

Thanks

Cedric

No one knows ?

Hi,

Yes, i ended up doing that as well (plus forcing the component to permanently face the camera). I was initially hoping for a one time “trigger and forget” modification.

Alghough it’s not much of a ressource eater, i don’t like the idea of ticking for something that is constant most of the time.

Thanks for your suggestion though :slight_smile:

I’ve tried this out (with an OnTick event setting the text in the actor’s event graph), and the text seems to rebuild fine without needing to move the pawn.