UI Scroll To Selection XY
Auto-scrolls a 2D ScrollRect to keep the selected element in view on both axes.
UIScrollToSelectionXY
Automatically scrolls a ScrollRect to the currently selected UI element with XY axis support
Contents
1 Overview
3 Methods
4 Usage
6 See also
Overview
A ScrollRect enhancement that automatically scrolls to the currently selected UI element, centers on selected element in scrollrect which can move in XY. You can restrict movement by locking axis on ScrollRect component.
Properties
The properties of the UIScrollToSelectionXY control are as follows:
| Property | Description |
|---|---|
| Scroll Speed | Speed at which the scroll rect moves to the selected element |
| Layout List Group | The RectTransform of the options “container” that will be scrolling |
Methods
This component does not expose public methods beyond inherited behaviour.
Usage
Simply add the component to a ScrollRect using:
“Add Component -> UI -> Extensions -> UI ScrollTo Selection XY”
Then assign the Layout List Group RectTransform.
Video Demo
N/A
See also
Credits and Donation
zero3growlithe, xesenix