C# 클래스 UIScrollBar, Hero.Coli

상속: MonoBehaviour
파일 보기 프로젝트 열기: CyberCRI/Hero.Coli 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
onChange OnScrollBarChange
onDragFinished OnDragFinished

공개 메소드들

메소드 설명
CenterOnPos ( Vector2 localPos ) : void

Move the scroll bar to be centered on the specified position.

ForceUpdate ( ) : void

Update the value of the scroll bar.

OnDragBackground ( GameObject go, Vector2 delta ) : void

Position the scroll bar to be under the current touch.

OnDragForeground ( GameObject go, Vector2 delta ) : void

Drag the scroll bar in the specified direction.

OnPressBackground ( GameObject go, bool isPressed ) : void

Position the scroll bar to be under the current touch.

OnPressForeground ( GameObject go, bool isPressed ) : void

Save the position of the foreground on press.

Reposition ( Vector2 screenPos ) : void

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

Start ( ) : void

Register the event listeners.

Update ( ) : void

Update the value of the scroll bar if necessary.

메소드 상세

CenterOnPos() 공개 메소드

Move the scroll bar to be centered on the specified position.
public CenterOnPos ( Vector2 localPos ) : void
localPos Vector2
리턴 void

ForceUpdate() 공개 메소드

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

OnDragBackground() 공개 메소드

Position the scroll bar to be under the current touch.
public OnDragBackground ( GameObject go, Vector2 delta ) : void
go GameObject
delta Vector2
리턴 void

OnDragForeground() 공개 메소드

Drag the scroll bar in the specified direction.
public OnDragForeground ( GameObject go, Vector2 delta ) : void
go GameObject
delta Vector2
리턴 void

OnPressBackground() 공개 메소드

Position the scroll bar to be under the current touch.
public OnPressBackground ( GameObject go, bool isPressed ) : void
go GameObject
isPressed bool
리턴 void

OnPressForeground() 공개 메소드

Save the position of the foreground on press.
public OnPressForeground ( GameObject go, bool isPressed ) : void
go GameObject
isPressed bool
리턴 void

Reposition() 공개 메소드

Drag the scroll bar by the specified on-screen amount.
public Reposition ( Vector2 screenPos ) : void
screenPos Vector2
리턴 void

Start() 공개 메소드

Register the event listeners.
public Start ( ) : void
리턴 void

Update() 공개 메소드

Update the value of the scroll bar if necessary.
public Update ( ) : void
리턴 void

프로퍼티 상세

onChange 공개적으로 프로퍼티

Delegate triggered when the scroll bar has changed visibly.
public OnScrollBarChange onChange
리턴 OnScrollBarChange

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