GUILabel

From Virtual World Web Wiki
Revision as of 13:13, 5 July 2018 by Spark5 (Talk | contribs) (Documentation for the GUILabel class)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A component representing a written text label

  • Inherits class: GUIComponent
  • This is a JavaScript visible object

Remarks [edit]

Properties

TextAnchor Alignment {get; set;}
Text alignment to use for this label
Color32 DisabledColor {get; set;}
What color should the text appear as if it's disabled?
string DisabledColorHex {get; set;}
DisabledColor hex representation
bool Enabled {get; set;}
string Font {get; set;}
Name of the font to use for this label
int FontSize {get; set;}
Point size of font to use for this label
FontStyle FontStyle {get; set;}
Style of font to use for this label
float LineSpacing {get; set;}
Line spacing
bool RichText {get; set;}
Should we parse Unity's "rich text" markup?
bool StrikeThrough {get; set;}
Strike through the label
string Text {get; set;}
Actual text value of the label
Color32 TextColor {get; set;}
What color should the text appear as?
string TextColorHex {get; set;}
TextColor hex representation
bool Underline {get; set;}
Underline the label
VerticalWrapMode VerticalWrapMode {get; set;}
How does this label handle vertical text exceeding the label bounds?
HorizontalWrapMode WrapMode {get; set;}
How does this label handle horizontal text wrapping?