Is There a Way to Wrap Text in a "Text Render" Object?

Is there a way to wrap the text in a “Text Render” object?

That’s really it.

Thanks so much.

Just hit enter.

You can parse the text like any other program/application.

Get the string, split it by spaces in an array, compose the final string with line breaks based on the amount of characters that you want to fit within each line.

pretty basic approach if you need to do it dynamically. You can probably get a CPP function off a number of open source things like notepad++ if you want performance.

Thank you for this. You know, I tried pressing “enter” (Shift + Enter), but it was after having copied and pasted a small paragraph. So, when it didn’t work, I assumed there was no automatic string formatting. I just typed in the line, pressing Shift + Enter as I went, and it worked fine.

Thanks again.

2 Likes