Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Get Truncated String

$
0
0
I've looked everywhere, but can't find a solution even remotely close to what I'm looking for.

Building my dialogue system, I want to display text and, if it's too long for the dialogue box, truncate it and store the truncated text in a variable (to be displayed next).

So! Is there a way to get the truncated string?
Or! Is there at least a way to find out if the string has been truncated?
Or! At the very, very least, is there a way to get the pixel size of a string? (preferably with the...

Get Truncated String

Viewing all articles
Browse latest Browse all 23263

Trending Articles