C# Class UIProgressBar, LoopScorllViewForNGUI

Inheritance: UIWidgetContainer
Mostra file Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Public Properties

Property Type Description
current UIProgressBar,
numberOfSteps int
onChange List
onDragFinished OnDragFinished
thumb Transform

Protected Properties

Property Type Description
mCam Camera
mIsDirty bool
mOffset float
mTrans Transform

Public Methods

Method Description
ForceUpdate ( ) : void

Update the value of the scroll bar.

Protected Methods

Method Description
LocalToValue ( Vector2 localPos ) : float

Calculate the value of the progress bar given the specified local position.

OnStart ( ) : void

Functionality for derived classes.

OnValidate ( ) : void

Invalidate the scroll bar.

ScreenToValue ( Vector2 screenPos ) : float

Drag the scroll bar by the specified on-screen amount.

SetThumbPosition ( Vector3 worldPos ) : void

Set the position of the thumb to the specified world coordinates.

Start ( ) : void

Register the event listeners.

Update ( ) : void

Update the value of the scroll bar if necessary.

Upgrade ( ) : void

Used to upgrade from legacy functionality.

Method Details

ForceUpdate() public method

Update the value of the scroll bar.
public ForceUpdate ( ) : void
return void

LocalToValue() protected method

Calculate the value of the progress bar given the specified local position.
protected LocalToValue ( Vector2 localPos ) : float
localPos Vector2
return float

OnStart() protected method

Functionality for derived classes.
protected OnStart ( ) : void
return void

OnValidate() protected method

Invalidate the scroll bar.
protected OnValidate ( ) : void
return void

ScreenToValue() protected method

Drag the scroll bar by the specified on-screen amount.
protected ScreenToValue ( Vector2 screenPos ) : float
screenPos Vector2
return float

SetThumbPosition() protected method

Set the position of the thumb to the specified world coordinates.
protected SetThumbPosition ( Vector3 worldPos ) : void
worldPos Vector3
return void

Start() protected method

Register the event listeners.
protected Start ( ) : void
return void

Update() protected method

Update the value of the scroll bar if necessary.
protected Update ( ) : void
return void

Upgrade() protected method

Used to upgrade from legacy functionality.
protected Upgrade ( ) : void
return void

Property Details

current static_oe public_oe property

Current slider. This value is set prior to the callback function being triggered.
static public UIProgressBar, current
return UIProgressBar,

mCam protected_oe property

protected Camera mCam
return Camera

mIsDirty protected_oe property

protected bool mIsDirty
return bool

mOffset protected_oe property

protected float mOffset
return float

mTrans protected_oe property

protected Transform mTrans
return Transform

numberOfSteps public_oe property

Number of steps the slider should be divided into. For example 5 means possible values of 0, 0.25, 0.5, 0.75, and 1.0.
public int numberOfSteps
return int

onChange public_oe property

Callbacks triggered when the scroll bar's value changes.
public List onChange
return List

onDragFinished public_oe property

Delegate triggered when the scroll bar stops being dragged. Useful for things like centering on the closest valid object, for example.
public OnDragFinished onDragFinished
return OnDragFinished

thumb public_oe property

Object that acts as a thumb.
public Transform thumb
return Transform