When i open and scroll the items to half of the scroll length and close(setactive = false) the scrollview and open it again it remain at half scroll length. How do I reset back to the top?
Just capture the “anchoredPosition” of the content panel of the ScrollRect on start, and reset it if you want to go back to where it started.
2 Likes
I actually write the reset code, but there is the simplest way, here:
https://docs.unity3d.com/ScriptReference/UI.ScrollRect-verticalNormalizedPosition.html
2 Likes
Thank you, @Xevetor - that did the trick for my broken scrollrect. ![]()