- Home /
Question by
xFjpackardx · Jan 31, 2014 at 05:26 AM ·
textcolorgui.boxgui style
Change GUI Style color with JavaScript
I need to change the normal color of some text I am displaying using GUI.Box
when I click with the mouse, and I think the only way to do this is to change the GUIStyle
I am using for the GUI.Box
.
How can I do this using JavaScript code?
Comment
Answer by getyour411 · Jan 31, 2014 at 05:27 AM
There's plenty of examples out there. Here's one
http://answers.unity3d.com/questions/57209/changing-text-color-in-guilabel.html
doesn't matter if it's gui.box, gui.label, etc.