Hi, can anyone provide a simple example of using the Wrap to wrap UILabel text?
Wrap
-
- English
- yahwho
- Thread is marked as Resolved.
-
-
You're probably looking for automatic word wrapping? In this case the Wrap enum is not the correct one - it's used for the style.flex property (see Unitys documentation for IStyle). You can find more information about the related CSS property here: https://developer.mozilla.org/…lex-wrap?retiredLocale=de
If you want to handle automatic word wrapping, you have to set the whiteSpace property (Unity doc) instead
Of course you can also write \n into your text to force a line break at that position
-
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!