Why would you lump this option together with another unrelated option? A separate bool value would have worked just as well, without breaking things.
At our company we are using a framework that is included in virtually all our projects and that contains wrapper classes for all UGUI object, so they can be properly created and modified via code. I now upgraded a single project to the pre-production package for TMP so I can use this functionality, and it works, but it breaks something else: I do some calculations, but only if enableWordWrapping is false. But when I use âPreserve Whitespace No Wrapâ, apparently that (depracated) bool is still true.
If I want to use this feature, Iâd have to change something 5 subclasses deep in our framework, breaking every single project that doesnât use the pre-production package, because the enum doesnât exist yet, or duplicate a whole subtree of classes that all depend on that one subclass.
These options are related in the sense they control word wrapping including how white spaces are treated at the end of a line. In hindsight, I could have added a new property but this would have meant users having to set two distinct properties instead of just one.
With respect to the deprecated âenableWordWrappingâ property, I could internally continue to set it based on the Text Wrapping Mode. This should ensure your code continues to behave correctly until you have a chance to update it.
I am using TextMeshPro 3.2.0-pre.10 and encountering an issue with âText Wrappingâ in Preserve White Space mode. When I use white spaces to push a word to the right and it wraps to the next line, the first 5-10 white spaces seem to have no effect. The text only starts moving to the right after about 5-10 white spaces. What could be causing this?
Example Text: "Proin sit amet ex ultricies, consequat magna in, sollicitudin est. Aenean tempus at orci eu consectetur.Fusce at orci et sapien finibus aliquam. Cras eget ante ac quam malesuada facilisis eu eget erat. Maecenas tristique posuere magna. Vestibulum iaculis est non leo consequat, in sagittis odio porttitor. "
You can test it by putting a space in front of the word âAeneanâ.