Unity-UI-Extensions.GitHub.io

Scroll Conflict Manager

Resolves dragging issues with nested Scroll Rect’s


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

The Scroll Conflict Manager solves the dragging issue with child Scroll Rect’s. Natively, nested Scroll Rect’s will only allow scrolling in the direction of a child Scroll Rect. This component solves this problem allowing free movement, locked to the initial direction of the drag.


Properties

The properties of the ScrollrectConflictManager control are as follows:

Property Description
Parent Scroll Rect The Rect Transform of the parent Scroll Rect

Methods

Method Arguments Description
SetParentScrollRect ScrollRect Resets the parent scroll rect for the manager and re-initializes the dependencies

Usage

Simply add the default Scroll Rect Conflict Manager component to an existing Scroll Rect using “UI / Extensions / Scrollrect Conflict Manager” in the “Component” menu, then assign the parent Scroll Rect to the control.

It is also available as a Game Component menu in “UI / Extensions / Scrollrect Conflict Manager”.


Video Demo

Click to play

Scroll Rect Conflict Manager Demo


See also


Credits and Donation

Credit srinivas sunil


Sourced from - https://bitbucket.org/UnityUIExtensions/unity-ui-extensions/pull-requests/21/develop_53/diff