For some reason, RichText in GUI doesn’t work for me. Nothing -colors, other things, even as basic thing as bold face doesn’t work. I have following code:
Rect descriptionRect = new Rect(invrect.x+((invrect.width/4)*4),invrect.y,invrect.width/3,invrect.height);
GUIStyle boxstyle = GUI.skin.box;
boxstyle.wordWrap=true;
boxstyle.alignment = TextAnchor.MiddleLeft;
boxstyle.richText=true;
GUI.Box(descriptionRect,"<color:a40000>Name:</color> "+Globals.playerInventory.getItemName(Globals.SelectedItemID)+"
"+"color:c69500Amount: “+Globals.playerInventory.getItemAmount(Globals.SelectedItemID).ToString()+”
"+"color:00a400Description: "+Globals.playerInventory.getItemDescription(Globals.SelectedItemID),boxstyle);
Should work, right? Nope - even since I specifically set richText to true, text still turns out as:
color:a40000Name: placeholder name
color:c69500Amount: 1223
color:00a400Description: placeholder description
Not even tags are removed which would mean that something is going on behind the scenes. This is same even for most basic tags such as or .