Wiki

Clone wiki

Unity-UI-Extensions / Controls / ScrollSnap

ScrollSnap

==============

An alternate scroll snap control supporting both Horizontal and Vertial layous in one control


Contents

1 Overview

2 Usage

3 Video Demo

4 See also

5 Credits and Donation

6 External links


Overview

A scroll snap style control which works with both a horizontal and vertical layout, enabling a paged view of child elements. Pages can be moved by keys, swipes or via the use of buttons.

*Note, should not be used in conjunction with scroll bars as this throws off the view.


Usage

Like with other Layout controls, simply add this to the parent RectTransform for a collection of child elements through the Add Component menu as follows: Add Component -> Layout -> Extensions -> ScrollSnap

Or alternatively, add one of the default layouts for the control using:

  • GameObject -> UI -> Extensions -> Fixed Item Scroll -> Snap Vertical Single Item
  • GameObject -> UI -> Extensions -> Fixed Item Scroll -> Snap Vertical Multiple Items
  • GameObject -> UI -> Extensions -> Fixed Item Scroll -> Snap Horizontal Single Item
  • GameObject -> UI -> Extensions -> Fixed Item Scroll -> Snap Horizontal Multiple Items

Video Demo

tutorial video


See also


Credits and Donation

BinaryX, xesenix


Sourced from

Updated