Scroller.DragScrollbarToPosition
DragScrollbarToPosition(Vector3)
Moves the scrollbar to the newScrollbarWorldPosition and scrolls the content accordingly
Remarks
If DraggableScrollbar == true, this will be called automatically whenever the ScrollbarVisual fires Gesture.OnDrag events.
If this.ActiveAndEnabled == false, this call won't do anything.
Declaration
public void DragScrollbarToPosition(Vector3 newScrollbarWorldPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | newScrollbarWorldPosition | The position to move the scrollbar to in world space. This will clamp everything to move along the scrolling axis. |