C# 클래스 UIScrollView, TheUnseen

상속: MonoBehaviour
파일 보기 프로젝트 열기: henryj41043/TheUnseen 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
contentPivot UIWidget.Pivot
customMovement Vector2
disableDragIfFits bool
dragEffect DragEffect
horizontalScrollBar UIProgressBar,
iOSDragEmulation bool
list BetterList
momentumAmount float
movement Movement,
onDragFinished OnDragFinished
restrictWithinPanel bool
scrollWheelFactor float
showScrollBars ShowCondition
smoothDragStart bool
verticalScrollBar UIProgressBar,

공개 메소드들

메소드 설명
DisableSpring ( ) : void

Disable the spring movement.

Drag ( ) : void

Drag the object along the plane.

MoveAbsolute ( Vector3 absolute ) : void

Move the scroll view by the specified amount.

MoveRelative ( Vector3 relative ) : void

Move the scroll view by the specified amount.

OnScrollBar ( ) : void

Triggered by the scroll bars when they change.

Press ( bool pressed ) : void

Create a plane on which we will be performing the dragging.

RestrictWithinBounds ( bool instant ) : bool

Restrict the scroll view's contents to be within the scroll view's bounds.

RestrictWithinBounds ( bool instant, bool horizontal, bool vertical ) : bool

Restrict the scroll view's contents to be within the scroll view's bounds.

Scroll ( float delta ) : void

If the object should support the scroll wheel, do it.

SetDragAmount ( float x, float y, bool updateScrollbars ) : void

Changes the drag amount of the scroll view to the specified 0-1 range values. (0, 0) is the top-left corner, (1, 1) is the bottom-right.

UpdatePosition ( ) : void

Call this function after you adjust the scroll view's bounds if you want it to maintain the current scrolled position

UpdateScrollbars ( bool recalculateBounds ) : void

Update the values of the associated scroll bars.

비공개 메소드들

메소드 설명
Awake ( ) : void

Cache the transform and the panel.

LateUpdate ( ) : void

Apply the dragging momentum.

OnDisable ( ) : void
OnDrawGizmos ( ) : void

Draw a visible orange outline of the bounds.

OnEnable ( ) : void
ResetPosition ( ) : void
Start ( ) : void

Set the initial drag value and register the listener delegates.

UpdateScrollbars ( UIScrollBar, sb, float contentMin, float contentMax, float contentSize, float viewSize, bool inverted ) : void

Helper function used in UpdateScrollbars(float) function above.

메소드 상세

DisableSpring() 공개 메소드

Disable the spring movement.
public DisableSpring ( ) : void
리턴 void

Drag() 공개 메소드

Drag the object along the plane.
public Drag ( ) : void
리턴 void

MoveAbsolute() 공개 메소드

Move the scroll view by the specified amount.
public MoveAbsolute ( Vector3 absolute ) : void
absolute Vector3
리턴 void

MoveRelative() 공개 메소드

Move the scroll view by the specified amount.
public MoveRelative ( Vector3 relative ) : void
relative Vector3
리턴 void

OnScrollBar() 공개 메소드

Triggered by the scroll bars when they change.
public OnScrollBar ( ) : void
리턴 void

Press() 공개 메소드

Create a plane on which we will be performing the dragging.
public Press ( bool pressed ) : void
pressed bool
리턴 void

RestrictWithinBounds() 공개 메소드

Restrict the scroll view's contents to be within the scroll view's bounds.
public RestrictWithinBounds ( bool instant ) : bool
instant bool
리턴 bool

RestrictWithinBounds() 공개 메소드

Restrict the scroll view's contents to be within the scroll view's bounds.
public RestrictWithinBounds ( bool instant, bool horizontal, bool vertical ) : bool
instant bool
horizontal bool
vertical bool
리턴 bool

Scroll() 공개 메소드

If the object should support the scroll wheel, do it.
public Scroll ( float delta ) : void
delta float
리턴 void

SetDragAmount() 공개 메소드

Changes the drag amount of the scroll view to the specified 0-1 range values. (0, 0) is the top-left corner, (1, 1) is the bottom-right.
public SetDragAmount ( float x, float y, bool updateScrollbars ) : void
x float
y float
updateScrollbars bool
리턴 void

UpdatePosition() 공개 메소드

Call this function after you adjust the scroll view's bounds if you want it to maintain the current scrolled position
public UpdatePosition ( ) : void
리턴 void

UpdateScrollbars() 공개 메소드

Update the values of the associated scroll bars.
public UpdateScrollbars ( bool recalculateBounds ) : void
recalculateBounds bool
리턴 void

프로퍼티 상세

contentPivot 공개적으로 프로퍼티

Content's pivot point -- where it originates from by default.
public UIWidget.Pivot contentPivot
리턴 UIWidget.Pivot

customMovement 공개적으로 프로퍼티

Custom movement, if the 'movement' field is set to 'Custom'.
public Vector2 customMovement
리턴 Vector2

disableDragIfFits 공개적으로 프로퍼티

Whether dragging will be disabled if the contents fit.
public bool disableDragIfFits
리턴 bool

dragEffect 공개적으로 프로퍼티

Effect to apply when dragging.
public DragEffect dragEffect
리턴 DragEffect

horizontalScrollBar 공개적으로 프로퍼티

Horizontal scrollbar used for visualization.
public UIProgressBar, horizontalScrollBar
리턴 UIProgressBar,

iOSDragEmulation 공개적으로 프로퍼티

Whether to use iOS drag emulation, where the content only drags at half the speed of the touch/mouse movement when the content edge is within the clipping area.
public bool iOSDragEmulation
리턴 bool

list 정적으로 공개적으로 프로퍼티

static public BetterList list
리턴 BetterList

momentumAmount 공개적으로 프로퍼티

How much momentum gets applied when the press is released after dragging.
public float momentumAmount
리턴 float

movement 공개적으로 프로퍼티

Type of movement allowed by the scroll view.
public Movement, movement
리턴 Movement,

onDragFinished 공개적으로 프로퍼티

Event callback to trigger when the drag process finished. Can be used for additional effects, such as centering on some object.
public OnDragFinished onDragFinished
리턴 OnDragFinished

restrictWithinPanel 공개적으로 프로퍼티

Whether the dragging will be restricted to be within the scroll view's bounds.
public bool restrictWithinPanel
리턴 bool

scrollWheelFactor 공개적으로 프로퍼티

Effect the scroll wheel will have on the momentum.
public float scrollWheelFactor
리턴 float

showScrollBars 공개적으로 프로퍼티

Condition that must be met for the scroll bars to become visible.
public ShowCondition showScrollBars
리턴 ShowCondition

smoothDragStart 공개적으로 프로퍼티

Whether the drag operation will be started smoothly, or if if it will be precise (but will have a noticeable "jump").
public bool smoothDragStart
리턴 bool

verticalScrollBar 공개적으로 프로퍼티

Vertical scrollbar used for visualization.
public UIProgressBar, verticalScrollBar
리턴 UIProgressBar,