var string1 : String;
function Start(){
string1 = "asdf" + Color.red + "qwer";
}
function OnGUI(){
GUILayout.Label (string1);
}
But this result in [ asdfRGBA(1.000,0.000,0.000,1.000)qwer
How to correct this?
var string1 : String;
function Start(){
string1 = "asdf" + Color.red + "qwer";
}
function OnGUI(){
GUILayout.Label (string1);
}
But this result in [ asdfRGBA(1.000,0.000,0.000,1.000)qwer
How to correct this?
As far as I know, you can’t change the color inline.
There should be a post or script somewhere by a guy who made a class to ‘fake’ this result by making multiple GUI.Labels.
Search the forums for multicolor gui label.