Skip to content

OGProgressBar

Jeppe Zapp edited this page Feb 6, 2014 · 2 revisions

Progress bars can be used to show health and the like

Variables

Variable Type
value float Value from 0-1
padding Vector2 Padding of the progress indicator

Methods

Method Return type
SetValue ( value : float ) void Set the value

Example

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 ();
Clone this wiki locally