-
Notifications
You must be signed in to change notification settings - Fork 25
OGProgressBar
Jeppe Zapp edited this page Feb 6, 2014
·
2 revisions
Progress bars can be used to show health and the like
Variable | Type | |
---|---|---|
value | float |
Value from 0-1 |
padding | Vector2 |
Padding of the progress indicator |
Method | Return type | |
---|---|---|
SetValue ( value : float ) |
void |
Set the value |
var bar : OGProgressBar = new GameObject ( "ProgressBar", OGProgressBar ).GetComponent.<OGProgressBar>();
bar.SetValue ( 0.5 );
bar.transform.localPosition = new Vector3 ( 10, 10, 0 );
bar.transform.localScale = new Vector3 ( 300, 20, 1 );
bar.GetDefaultStyles ();