Download

Safe to modify FText

I’ve been working on a word wrapping system that attempts to fit FText into a bubble on the screen (The built in word wrap won’t suit my needs). It’s converted to an FString to break up and check if it fits inside a maximum size. If it doesn’t then it’s split into an array of FString that all fit within the bubble. When there is no text left it’s then put back together with the LINE_TERMINATOR between each line and then sent to be displayed on the screen. It appears to still work with multiple languages but I worry given the amount of warnings about potential loss of data that it isn’t safe to do it this way but wanted to confirm it first before looking at alternatives.