- Home /
Question by
blackshtormx · Sep 12, 2014 at 01:25 PM ·
colorguitexture
guitext is not changing color
i attached this script to guitext but... ok when I am pressing the guitext it isn't changing the color, no erors in console, i really dont know.
function Start(){
guiText.material.color = Color.white;
}
function OnMouseOver(){
guiText.material.color = new Color(0.5, 0.5, 0.5, 1);
}
function OnMouseExit(){
guiText.material.color = Color.white;
}
function OnMouseDown(){
guiText.material.color = Color.green;
}
Comment
Answer by VesuvianPrime · Sep 12, 2014 at 02:12 PM
I'm not sure why you're getting angry that people haven't replied within 20 minutes.
Anyway, a quick google search gives me this duplicate question: http://answers.unity3d.com/questions/8055/how-do-i-change-the-color-of-a-font-in-a-guitext.html
Your answer
Follow this Question
Related Questions
GuiTexture don't work with prefab 1 Answer
Problem with GUITexture.color.a 2 Answers
GUITexture boundaries when sclaled 0 Answers
GUI Texture Problem 1 Answer
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer