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; //

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


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:/...

论文: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