Set font size and color in GUI.Label

原创 2016年08月29日 15:26:58

unity GUI.Label:

public static void Label(Rect position, string text);

public static void Label(Rect position, string textGUIStyle style);


GUIStyle myStyle;

void Start () {
	myStyle = new GUIStyle ();
	myStyle.fontSize = 72;
	myStyle.normal.textColor = Color.white; // https://docs.unity3d.com/ScriptReference/GUIStyle-normal.html
}

void OnGUI (){
	GUI.Label (new Rect (0, 0, 10, 10), "Hello", myStyle);
}

版权声明:blog.csdn.net/u010476094

Font in CSS {font size, font color, font weight, text decoration, font family

font-family body {      font-family: Verdana, Geneva, Arial, sans-serif;    /* for font-family na...

User select font-face/color/size/backgroundColor设置 字体,颜色,大小,背景色兼容主流浏览器

User select font-face/color/size/backgroundColor设置 字体,颜色,大小,背景色兼容主流浏览器 Font: Default Ari...

Its width is W and height is H. As a result, if the font size of characters is S then it can only sh

描述 Steven loves reading book on his phone. The book he reads now consists of N paragraphs and the i-...

set transparent button image and background color to button

I have a transparent button image with white border and without label. I want to create a button whi...
  • zery
  • zery
  • 2012年08月13日 13:14
  • 940

"WARNING: Increasing RAM size to 1GB" and "Cannot set up guest memory 'xxx.ram': Invalid argument".

参考文文章: http://stackoverflow.com/questions/32901130/android-studio-avd-ram-size-not-changing http:/...

论文:Coverage, Redundancy and Size-Awareness in Genre Diversity for Recommender Systems

现在推荐系统领域越来越多地意识到多样性是提高推荐有效性的一重要特征。类型信息可以作为测量和提高推荐的多样性,而且在电影、音乐、图书领域是现成的。在这篇论文中我们在推荐系统上为定义类型号的多样性提出一个...
  • czzffff
  • czzffff
  • 2015年03月10日 17:03
  • 371

[siggraph10]color enhancement and rendering in film and game productio

原文link:color enhancement and rendering in film and game production>是siggraph 2010,“Color Enhancement...
  • ccanan
  • ccanan
  • 2011年09月07日 14:16
  • 1953
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Set font size and color in GUI.Label
举报原因:
原因补充:

(最多只允许输入30个字)