How to use the OverscrollConfig

0 votes
asked Feb 16, 2017 in Help by kintz_09 (140 points)
Hi, we are using this asset for our UI and we love it. However, I can't seem to find documentation covering the majority of the resources included. For example, the overscrollConfig script. Do you have any instructions on how to use this? I added the script to the gameobject containing the Scroll Rect component but I don't see any effect happening.

This package looks incredibly powerful, but I'm struggling without some additional documentation on how this is expected to be used.

Thank you!

1 Answer

0 votes
answered Mar 7, 2017 by admin (31,720 points)
Hi knitz_09,

To use OverscrollConfig, you'll want to make sure of a few things:

- ScrollRect's movement type is set to 'clamped' (OverscrollConfig disables itself otherwise, to avoid conflicting overscroll effects)

- The content is larger than the scrollrect (otherwise it wouldn't scroll, and thus wouldn't need to have overscroll effects).

- If you're changing the size of the content at runtime (even on Awake/Start), it's best to call Setup() on the overscroll afterwards, to make it re-check whether there should be overscroll effects and set itself up accordingly.

Apologies for the late reply, and while I agree the documentation is lacking, I can unfortunately only do so much with my time. Once I have things in a more stable state where everything is less sporadically changing, writing more documentation will be a higher priority - in the meantime, feel free to post questions here or email us, and we'll be happy to help :)

~ Declan.
Welcome to MaterialUI support! Ask us anything :)
...