- Home /
Question by
deadshot · Jun 02, 2016 at 03:58 PM ·
uimaskscrollviewscroll
stopping scrollrect if it is about to leave the desired space
too sum it up, i have two panels i.e. p1 is the parent of p2 where p1 masks p2, p2(containing some buttons) has a scrollrect on it and i want that p2 should stay in the bounds of p1. When i scroll with elasticity, p2 is able to leave the visible bounds.i want p2 to stay in the bounds of p1 i.e. if p2 reaches any of the ends it should bounce/snap back into the visible bounds. i tried horizontalNormalisedPosition but could not understand how it works. EVERYTHING IS IN HORIZONTAL FLOW. thank you
Comment
Your answer
Follow this Question
Related Questions
Scrolling list of prefabs 1 Answer
[Solved] need help regarding autolayout in scrollrect 1 Answer
Scrollable zooming list 0 Answers
Scroll Rect doesn't display items Unity 5.6 2 Answers
Unity UI double Scroll Rect handler? 0 Answers