Text is not visible when changing text color
I changed color of UnityEngine.UI.Text when OnPointerEnter was working. but I can't see text when i changed it. my code is simple.
Text.color = (b ? color1 : color2);
color1 and 2 are public members of class. Is it because color of custom? Unity defined Color (like UnityEngine.Color.white) is doing very well. Why doesn't work only my custom color?
Did you set the alpha channel to 1 (0 by default) before you assign it to text.color?
Your answer

Follow this Question
Related Questions
Space Shooter Tutorial GUI is not working 1 Answer
Textmesh pro doesn't show up in game object menu, so i cant add a textmesh pro object 0 Answers
How to add a tally system to a Tic Tac Toe game 0 Answers
Text, Dictionary, and GetComponent 1 Answer
Scale slider min to max value based on parent object scale descending 1 Answer