-
Notifications
You must be signed in to change notification settings - Fork 25
OGLabel
Jeppe Zapp edited this page Feb 6, 2014
·
1 revision
Labels are for displaying a string of text
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 |
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 ();