- Home /
My GUI text dissapears...
I'm using the code:
     public Color colorLetras;
     void OnMouseEnter()
     {
         guiText.color =colorLetras; 
     }
and this makes my text just dissapear... but the color box on the GUI text on the inspector changes correctly
when I use:
     void OnMouseEnter()
     {
         guiText.color = Color.red; 
     }
it all works correctly... I don't understand why, maybe a bug??
Is colorLetras being set to a color that blends into it's background?
Answer by Jombo · Jan 23, 2014 at 08:00 PM
Yes in the color box of the inspector, there I asign my public color to a dark red...
What is the print out of colorLetras.toString()?
 print(colorLetras.toString());
On a side note, I think you should have commented in Exalia's answer, ins$$anonymous$$d of making an answer as a reply.
Your answer
 
 
             Follow this Question
Related Questions
FPS problem with Multi-Colored text on Unity 5 uGUI via Rich Text 0 Answers
Change MANUALLY GUIText's.text COLOR 2 Answers
Text Changes to Black 7 Answers
Can't use script on more items 1 Answer
Text/font color 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                