I'm making an extremely basic text editor, and I would like the user to be able to enter text, and then change the color of a part of that text dynamically. I have a way to select a new color and to return a usable RGB value, and I have a UI Input that lets me put in multi-line text, and it even allows me to highlight sections of that text (highlighted text obviously behaves in all of the ways you would expect highlighted text to work.) What I'm having trouble figuring out is how to set the color of highlighted text. I know that I can set the color manually by typing in something like [FF0000]this text is colored[-] to the label but if I'm going to do that programmatically I still need to know where the beginning and the end of the highlighted text is.
So... what information can i retrieve about highlighted text, and how can I set the highlighted text (and the highlighted text only) to a new color?
I will continue to look through the NGUI script reference in the meantime and I'll let you all know if i find anything but if someone can point me in the right direction that would be fantastic!