Pigeon shit

[ Pigeon shit ] unity Text Color problems

ScreenHunter_38 Oct. 13 12.59

So I was working on Pigeon shit as usual and added a neat little FPS counter for debugging that displays the fps on a Text component. The text would change color (red, yellow, green) depending on the fps. To do this I used text.material.Color, however this would turn all my text components in the scene to green! And had to restart unity to fix it =S found out you had to use text.Color haha, makes sense if you think about it :). I think all text components uses the same material so yeah if you change the color on that material ofcourse every Text component would change color :o

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>