There was an error while loading. Please reload this page.
Labels are for displaying a string of text
string
boolean
int
TextAnchor
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 ();