- Home /
TextMesh Pro, indent line that is wrapped.
Hello, so I'm using TextMesh Pro and I was wondering if it is possible and if so, how could I indent a line that is wrapped.
I have some text that is dynamically changing so I can't just insert the indent manually. If I could determine where and what word was being wrapped I could use the tag <indent=2%> some text </indent>
At the beginning of each sentence there is a bullet, so the first line won't need to be indented. Only when it starts wrapping.
As can be seen in the image below, I want the text in the 2nd and 3rd line to be indented.
I've considered using string.Split('\n') and indenting at the beginning of each line, but I don't think it would work considering its wrapped, not entered. I can't think of any other way to do it. If you have any ideas, they would be greatly appreciated.
Please ask any questions if you are confused.
Answer by MrMatthias · Sep 25, 2017 at 02:58 PM
You have to indent the complete list item without the dot
•<indent=2%>Long text</indent>
I did eventually get to that thanks, but I'll mark up your answer because it is correct.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
UI Text Alpha not fading out in animation 0 Answers
if statement not working for user input 0 Answers
how to stop input field from restarting the string value? 0 Answers