- Home /
Question by
mgropper · Feb 10, 2015 at 11:54 AM ·
javascriptguitextcolor change
How to change GUI Text color in a javascript?
I have a game where there is GUI text, then I want the text to change colors when a certain action is performed. I put a mesh renderer on the text and tried renderer.material.color = Color.white, but that did not work.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613182920im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Pause not working correctly 1 Answer
Setting Scroll View Width GUILayout 1 Answer
Script sets color to multiple objects from instead of only one object with Random.range() 0 Answers
Changing the colour of my shaders through GUI Colour palette? 0 Answers
BCE0022 Cannot convert 'function(): String' to 'String'. 2 Answers