- Home /
Question by
alexnecpol · Aug 15, 2017 at 05:05 PM ·
textcolor change
How to access a color variable from a different class
I use custom colors for my text. I've created the color variables in my game manager script, but when I access the custom color via another script Text.color = GM.Nagato;
it sets the color to white. In the GM script the Nagato color is defined as public Color Nagato = new Color(0.86666666666666666666666666666667f, 0.46274509803921568627450980392157f, 1f);
which does not yield white if I use it directly. Any idea why? Thanks in advance
Comment