Wiki

Clone wiki

Unity-UI-Extensions / Controls / UI_ScrollRectOcclusion

UI_ScrollRectOcclusion

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

Disables the objects outside of the scrollrect viewport. Useful for scrolls with lots of content


Contents

1 Overview

2 Properties

3 Usage

4 Video Demo

5 See also

6 Credits and Donation

7 External links


Overview

The Scroll Rect occlusion script enables and disables Content child items that are outside the visible area of the Scroll Rect.

It allows you determine whether it starts on awake or via code.


Properties

The properties of the Scroll Rect Occlusion component are as follows:

Property Description
Init By User Should this occlude automatically or only on request.

Usage

Simply add the default Scroll Rect Occlusion component to a Scroll Rect using "UI / Extensions / UI ScrollRect Occlusion" in the "Component" menu.

It is also available as a Game Component menu in "UI / Extensions / UI ScrollRect Occlusion".


Video Demo

Click to play

Scroll Rect Occlusion Demo


See also


Credits and Donation

Credit Tomasz Schelenz


Sourced from - https://bitbucket.org/UnityUIExtensions/unity-ui-extensions/issues/82/scrollrectocclusion

Updated