Hi everyone !
I don't know how can I manage that. I have an image in a GUITexture and I would like to change the color of this image. How can I do this ?
Thanks :)
Hi everyone !
I don't know how can I manage that. I have an image in a GUITexture and I would like to change the color of this image. How can I do this ?
Thanks :)
it's easy. there is a tint color property in it's inspector and you can change it in code using color property. attach a script like this to the object containing GUITexture
GetComponent(GUITexture).color = myCol;
where myCol is a Color variable with values you want. you can change the color whenever you want. as you might know with methods like HitTest you can see if the mouse pointer is on your GUITexture or not to change the color and do other stuff.