Hi!
Is there a way to set guiText’s or GUI.Label’s String parts in different colors?
For example
#pragma strict
@script RequireComponent(GUIText)
@HideInInspector
var str: String=Hi, Folks!; //need to access globally, but no need to show in Inspector
private var guiT: GUIText;
private var color1: Color=Color.red;
private var color2: Color=Color.white;
function Start()
{
// str's first two simbols are Red and Remaining ones are white
guiT=guiText;
guiT.text=str;
}
Thanks in advance!
SCape.