Tab view and vertical scrollable page

0 votes
asked Mar 22, 2016 in Help by erkan (180 points)
I use together MaterialUi Tab View and UnityUi Scroll View as Tab View page. I use Unity ScrollView because i didn't find anything related in MaterialUi. But when i want to scroll between tab pages it doesn't work. How i solve this problem?

2 Answers

0 votes
answered Mar 28, 2016 by admin (31,720 points)
selected Mar 29, 2016 by admin
 
Best answer
Hey there,

I've just added a component (DragEventSender) for v1.1.3, which will allow you to very easily pass the drag events to either the ScrollRect or TabView, depending on whether the drag was horizontal or vertical. I'll let you know when that version's available, and give you an example of how to use the component :)

~ Declan.
commented Mar 28, 2016 by anonymous
Ok, thank you very much :)
0 votes
answered Mar 25, 2016 by admin (31,720 points)
Hello,

The problem is that TabView already uses a scrollView (you can find it on the "Pages" GameObject), and it seems you can't have one scrollView on top of the other and have the two work together :/

What you can maybe do, is take a look at the "TabPagesScrollDetector" script, and see here, that we are doing some custom dragging to move between the tabs... you could have your own custom dragging two, you'll receive the two callbacks "OnDrag" and "OnEndDrag" and do whatever you want with that to move your own list...
Welcome to MaterialUI support! Ask us anything :)
...