- Home /
UGUI Find tapped character in textfield?
Hello,
I'm writing a children's book where the text highlights as the narrator reads and you can click on individual words to hear them spoken aloud.
I am looking to switch from NGUI to UGUI. NGUI allowed me to see which character in a text field was tapped. It also allowed me to change the color of specific words in the text field.
I'm totally new to UGUI. Does UGUI have these features? If so, some sample code or pointers would be much appreciated!
Thanks.
Answer by FortisVenaliter · May 12, 2015 at 06:52 PM
No, not as far as I know.
With the Unity 5 UI, you can create Text objects, but they have to be all one color, so you'd need a new one for each word, and have to put them in some kind of flow layout for it to work.
If you need that level of customization, you might be better off sticking to NGUI, or writing something custom.