How can i view the Scroll View From the First

Hi all

I am new bie to unity. In my project i have 3 panels. Each and every panel the buttons are instaniated in the panel with horizontal view. i have displayed it.

when i run the project project. if i clicked the panel 1 the view is displayed.after that if i clicked panel2 and then come back to panel 1. Whatever i have previously displayed in the panel is displaying.

that means.

Panel 1 i have 4 buttons. In horizontal view one bye one button is displaying. if i choose 3 button after that i have gone for the panel 2 and do action. after i come back to panel 1. The 3 button is displaying in the panel. Actually it should displayed from 1 … But it is displaying the previously selected. So how can i view the content from 1st iteself…

are we talking mobile here?

I’m having a little trouble understanding what you’re saying… do you mean you want the scrollrect view to “snap back” to the beginning after one of it’s buttons is clicked? so that when you view that scrollrect again it’s showing the start of the content not the button that was selected?

You can set the “scroll position” using: http://docs.unity3d.com/ScriptReference/UI.ScrollRect-normalizedPosition.html
So you could create a function which sets that to (0,0) and add it as an additional function to call in the button’s event list.

Thanks Lefty Rights For your Code. This was What i am expected. Thanks for your help …