C# Class UIProgressBar, LoopScorllViewForNGUI

Inheritance: UIWidgetContainer
Afficher le fichier Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Méthodes publiques

Свойство Type Description
current UIProgressBar,
numberOfSteps int
onChange List
onDragFinished OnDragFinished
thumb Transform

Protected Properties

Свойство Type Description
mCam Camera
mIsDirty bool
mOffset float
mTrans Transform

Méthodes publiques

Méthode Description
ForceUpdate ( ) : void

Update the value of the scroll bar.

Méthodes protégées

Méthode 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 méthode

Update the value of the scroll bar.
public ForceUpdate ( ) : void
Résultat void

LocalToValue() protected méthode

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

OnStart() protected méthode

Functionality for derived classes.
protected OnStart ( ) : void
Résultat void

OnValidate() protected méthode

Invalidate the scroll bar.
protected OnValidate ( ) : void
Résultat void

ScreenToValue() protected méthode

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

SetThumbPosition() protected méthode

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

Start() protected méthode

Register the event listeners.
protected Start ( ) : void
Résultat void

Update() protected méthode

Update the value of the scroll bar if necessary.
protected Update ( ) : void
Résultat void

Upgrade() protected méthode

Used to upgrade from legacy functionality.
protected Upgrade ( ) : void
Résultat 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
Résultat UIProgressBar,

mCam protected_oe property

protected Camera mCam
Résultat Camera

mIsDirty protected_oe property

protected bool mIsDirty
Résultat bool

mOffset protected_oe property

protected float mOffset
Résultat float

mTrans protected_oe property

protected Transform mTrans
Résultat 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
Résultat int

onChange public_oe property

Callbacks triggered when the scroll bar's value changes.
public List onChange
Résultat 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
Résultat OnDragFinished

thumb public_oe property

Object that acts as a thumb.
public Transform thumb
Résultat Transform