Automatically scrolls a ScrollRect to the currently selected UI element with XY axis support
1 Overview
3 Methods
4 Usage
6 See also
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.
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 |
This component does not expose public methods beyond inherited behaviour.
Simply add the component to a ScrollRect using:
"Add Component -> UI -> Extensions -> UI ScrollTo Selection XY"
Then assign the Layout List Group RectTransform.
N/A
zero3growlithe, xesenix