Hi.
I believe there must be a simple solution, however I couldn’t get to it yet.
I want to display with different colors a label.
so I have:
GUIStyle style1 = new GUIStyle();
GUIStyle style2 = new GUIStyle();
...
style1.normal.textColor = new Color(255, 255, 255);
style2.normal.textColor = new Color(255, 144, 90);
...
GUILayout.Label("my text", condition ? style1 : style2);
and I always get the text color white.
Thanks in advance.
I see. Now, what would be the value of 144? Must be 144/255.0 Thanks. Accepting answer
– sergiu