Disables the objects outside of the scrollrect viewport. Useful for scrolls with lots of content
1 Overview
3 Methods
4 Usage
6 See also
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.
The properties of the Scroll Rect Occlusion component are as follows:
Property | Description |
---|---|
Init By User | Should this occlude automatically or only on request. |
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”.
Click to play
Credit Tomasz Schelenz
Sourced from - https://bitbucket.org/UnityUIExtensions/unity-ui-extensions/issues/82/scrollrectocclusion