Hi all
I am new bie to unity. I have a Scroll View where i have a instantiate buttons in the horizontal view. I have done that.
My problem is I have a arrow button >>>>>>>… if the user clicked the >>>>>Button the next content should displayed.if i the user clicked <<<<< button the previous content should displayed. How can i do it.
this thread seems to contains a link to working source code for something like this, comments has some guidance on usage.
(haven’t checked the code works though )
Thanks LeftyRighty For your help… With the help of forum i have found a solution to next content …
ScrollRect myScrollRect;
s+=0.33f;
myScrollRect.horizontalNormalizedPosition = Mathf.Lerp(myScrollRect.horizontalNormalizedPosition, s, 20myScrollRect.elasticityTime.deltaTime);