C# 클래스 UIProgressBar, LoopScorllViewForNGUI

상속: UIWidgetContainer
파일 보기 프로젝트 열기: tinyantstudio/LoopScorllViewForNGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
current UIProgressBar,
numberOfSteps int
onChange List
onDragFinished OnDragFinished
thumb Transform

보호된 프로퍼티들

프로퍼티 타입 설명
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