Property | Type | Description | |
---|---|---|---|
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, |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
public MoveAbsolute ( Vector3 absolute ) : void | ||
absolute | Vector3 | |
return | void |
public MoveRelative ( Vector3 relative ) : void | ||
relative | Vector3 | |
return | void |
public RestrictWithinBounds ( bool instant ) : bool | ||
instant | bool | |
return | bool |
public RestrictWithinBounds ( bool instant, bool horizontal, bool vertical ) : bool | ||
instant | bool | |
horizontal | bool | |
vertical | bool | |
return | bool |
public SetDragAmount ( float x, float y, bool updateScrollbars ) : void | ||
x | float | |
y | float | |
updateScrollbars | bool | |
return | void |
public UpdateScrollbars ( bool recalculateBounds ) : void | ||
recalculateBounds | bool | |
return | void |
public UIProgressBar, horizontalScrollBar | ||
return | UIProgressBar, |