Move Text/3D-Text along spline

1: No matter what i did, i just
couldn’t get the TextRender to adapt
to the shape of my spline. I guess you
have to do some manual work to the
TextRender (set start/end
position/tangents), which i wasn’t
able to figure out how to do it.

As I mentioned initially, text render is not a spline mesh so it cannot be deformed by the spline. A potential solution would be to make a text render for every letter:

MyText is converted to an array of letters, and for every letter I dynamically add a TextRenderComponent and set its text. The CharacterSpacing is not necessary as, eventually, we’re going to ask the spline to provide a position for every letter instead.

Which would give you something like that:

Next, you need a location and rotation for every letter along the spline. This can be done by dividing the spline length by the amount of letters and getting a location and rotation at the specified spline length.

It should give you something like this:

The text is stretched along the entire spline but it can be fixed easily.

2 Likes