How to change font type in GUI in unity

I used the GUI to display this text in unity:

GUI.Label(Rect(430,320,500,500),"Win"); GUI.Label(Rect(400,470,500,500),"Your scores :" +player_script.points); 

I want to make the text as follows:

enter image description here

+7
unity3d
source share
1 answer

Change your gui code as follows

 GUI.Label(Rect(430,320,500,500),"<color=green><size=100>Win</size></color>"); GUI.Label(Rect(400,470,500,500),"<color=green><size=35>Your scores : </size></color>"+"<color=black><size=35>"+player_script.points+"</size></color>"); 

also, if you want to change the font type, you can try this rich tag and let me know if it worked

 <font face="verdana">....</font> 
+7
source share

All Articles