如何在GUI中统一更改字体类型

Aka*_*ari 7 unity-game-engine

我用GUI来统一显示这个文本:

GUI.Label(Rect(430,320,500,500),"Win");


GUI.Label(Rect(400,470,500,500),"Your scores :" +player_script.points);
Run Code Online (Sandbox Code Playgroud)

我想把文字做成这样的:

在此输入图像描述

小智 7

像这样修改你的gui代码

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>");
Run Code Online (Sandbox Code Playgroud)

如果你想更改字体类型,那么你可以尝试这个丰富的标签,让我知道它是否有效

<font face="verdana">....</font>
Run Code Online (Sandbox Code Playgroud)