Skip to content

Latest commit

 

History

History
82 lines (50 loc) · 1.54 KB

File metadata and controls

82 lines (50 loc) · 1.54 KB

UIScrollToSelectionXY

Automatically scrolls a ScrollRect to the currently selected UI element with XY axis support


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


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


External links

Sourced from