How use Button in ScrollView in NGUI to scroll the object

Pawan Chaurasiya picture Pawan Chaurasiya · May 13, 2014 · Viewed 10k times · Source

I made the Scrollable View in NGUI using following tutorials Here but how can I use button to scroll the objects. Like If i click on up button it ScrollView should be up and If i click on down ScrollView should be down.

Your help will be appreciated. Thanks.

enter image description here

Answer

Pawan Chaurasiya picture Pawan Chaurasiya · May 14, 2014

I just figure out how to do this.

SpringPanel.Begin ( GameObject go,Vector3 pos,float strength ) 

here GameObject is NGUI gameObject such as ScrollView and pos is position what amount should scrollview move and strength is that related to speed. hope you will find useful.