Question by
Pathetic-Fallacy · Apr 29, 2019 at 12:57 AM ·
c#3d text
trying to change the color of string when i press an if statement
I wrote a short text adventure using 3d text mesh. when I enter in a room I want to highlight the chosen room (textmesh=textbuffer to string) 3d mesh text by change the color of selected text I know I can change the text color with but I can't when press r, I tried to use m_Renderer = GetComponent(); but it changes the whole text . how can I dynamically change the color ??
screen-shot-2019-04-28-at-82908-pm.png
(205.4 kB)
screen-shot-2019-04-28-at-82948-pm.png
(199.2 kB)
Comment
Text$$anonymous$$esh
supports rich text. Have you tried to add a color
tag?