C# Класс UIProgressBar, LoopScorllViewForNGUI

Наследование: UIWidgetContainer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
current UIProgressBar,
numberOfSteps int
onChange List
onDragFinished OnDragFinished
thumb Transform

Защищенные свойства (Protected)

Свойство Тип Описание
mCam Camera
mIsDirty bool
mOffset float
mTrans Transform

Открытые методы

Метод Описание
ForceUpdate ( ) : void

Update the value of the scroll bar.

Защищенные методы

Метод Описание
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.

Описание методов

ForceUpdate() публичный Метод

Update the value of the scroll bar.
public ForceUpdate ( ) : void
Результат void

LocalToValue() защищенный Метод

Calculate the value of the progress bar given the specified local position.
protected LocalToValue ( Vector2 localPos ) : float
localPos Vector2
Результат float

OnStart() защищенный Метод

Functionality for derived classes.
protected OnStart ( ) : void
Результат void

OnValidate() защищенный Метод

Invalidate the scroll bar.
protected OnValidate ( ) : void
Результат void

ScreenToValue() защищенный Метод

Drag the scroll bar by the specified on-screen amount.
protected ScreenToValue ( Vector2 screenPos ) : float
screenPos Vector2
Результат float

SetThumbPosition() защищенный Метод

Set the position of the thumb to the specified world coordinates.
protected SetThumbPosition ( Vector3 worldPos ) : void
worldPos Vector3
Результат void

Start() защищенный Метод

Register the event listeners.
protected Start ( ) : void
Результат void

Update() защищенный Метод

Update the value of the scroll bar if necessary.
protected Update ( ) : void
Результат void

Upgrade() защищенный Метод

Used to upgrade from legacy functionality.
protected Upgrade ( ) : void
Результат void

Описание свойств

current статическое публичное свойство

Current slider. This value is set prior to the callback function being triggered.
static public UIProgressBar, current
Результат UIProgressBar,

mCam защищенное свойство

protected Camera mCam
Результат Camera

mIsDirty защищенное свойство

protected bool mIsDirty
Результат bool

mOffset защищенное свойство

protected float mOffset
Результат float

mTrans защищенное свойство

protected Transform mTrans
Результат Transform

numberOfSteps публичное свойство

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
Результат int

onChange публичное свойство

Callbacks triggered when the scroll bar's value changes.
public List onChange
Результат List

onDragFinished публичное свойство

Delegate triggered when the scroll bar stops being dragged. Useful for things like centering on the closest valid object, for example.
public OnDragFinished onDragFinished
Результат OnDragFinished

thumb публичное свойство

Object that acts as a thumb.
public Transform thumb
Результат Transform