- Home /
Question by
just_a_joke · May 25, 2016 at 08:33 AM ·
unity 5scroll view
Scroll view start scrolling from top
Hi Unity Community,
Currently I working on a 2D project which required to use the ScrollView for displaying the menu. The content item for the ScrollView will be creating on runtime which it is dynamic.
Currently I successful to generate the content item in the ScrollView, but the problem is the ScrollView always start from the bottom which is the last item to add into the ScrollView. I would like the ScrollView to start the scrolling from the top which is the very first item added into the ScrollView.
I added the following code :-
sr.verticalScrollbar.value = 1;
But it do not have any effect on the ScrollView which still start from bottom.
Any guidelines or suggestions would be appreaciate. PS. I am using Unity 5.3.4f1
Thanks
Comment
Your answer
