i'm working with a UI.text element and i have the rich text checked, but i'm using a little function that types out strings character by character with a little pause inbetween. I wanted to color code the NPCs dialogue in my game and when i have it write out something like:
"blah blah blah "
it writes the text out, but the string i'm writing the characters to wont understand the HTML color code until the very end when i reach the ending color brackets, then once its all typed out, it recognizes the color coding and it corrects itself. but until then i can see the function typing everything out. does anyone know a way around this?
maybe i could input the entire color code first, then type the characters into the middle of it?
but i don't know how i would go about that. maybe using substrings?
- ill be trying to do this with substrings unless someone else and give me a better route
↧