【发布时间】:2013-10-10 17:29:36
【问题描述】:
我使用 GUI 统一显示此文本:
GUI.Label(Rect(430,320,500,500),"Win");
GUI.Label(Rect(400,470,500,500),"Your scores :" +player_script.points);
我想把文字写成这样:
【问题讨论】:
标签: unity3d
我使用 GUI 统一显示此文本:
GUI.Label(Rect(430,320,500,500),"Win");
GUI.Label(Rect(400,470,500,500),"Your scores :" +player_script.points);
我想把文字写成这样:
【问题讨论】:
标签: unity3d
像这样修改你的 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>");
如果你想改变字体类型,那么你可以试试这个丰富的标签,让我知道它是否有效
<font face="verdana">....</font>
【讨论】: