8000 OGLabel · unity3d-open-tools/opengui Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OGLabel

Jeppe Zapp edited this page Feb 6, 2014 · 1 revision

Labels are for displaying a string of text

Variables

Variable Type
text string Text displayed
overrideFontSize boolean Should font size be determined by style or manually?
fontSize int Size of the font
overrideAlignment boolean Should alignment be determined by style or manually?
alignment TextAnchor Alignment

Example

var lbl: OGLabel = new GameObject ( "Label", OGLabel ).GetComponent.<OGLabel >();

lbl.text = "Hello!"

lbl.transform.localPosition = new Vector3 ( 10, 10, 0 );
lbl.transform.localScale = new Vector3 ( 300, 20, 1 );

lbl.GetDefaultStyles ();
Clone this wiki locally
0