Scrolling behaviour with Circular example
Posted: Tue Jun 14, 2022 10:39 am
Hey,
Noticed some odd scrolling behaviour with the subsurface circular example that I couldn't quite figure out tracing through the code. Wondering if it might just be the native behaviour in unity's scrollview.
If you have text that has already scrolled, and options appear, after you select an option and the options disappear from the window, it scrolls back up (moving the last line to the very bottom of the viewport) and then proceeds to scroll as it adds lines. It's sort of jarring visually when trying to read the text and if you have a long list of options quite distracting.
I am guessing it's because when the gameobjects for the options are removed the scrollview readjusts to show the maximum amount of content possible. I am wondering if there's a way to override this so that it didn't readjust, so that when the option disappear, it stays put, and then continues rendering from the last content piece. I looked through the code and played a bit with the ScrollToBottom() placements but that didn't seem to have any impact.
Realize it might be just the way Unity's scrollview works though. Thanks for any assistance.
Noticed some odd scrolling behaviour with the subsurface circular example that I couldn't quite figure out tracing through the code. Wondering if it might just be the native behaviour in unity's scrollview.
If you have text that has already scrolled, and options appear, after you select an option and the options disappear from the window, it scrolls back up (moving the last line to the very bottom of the viewport) and then proceeds to scroll as it adds lines. It's sort of jarring visually when trying to read the text and if you have a long list of options quite distracting.
I am guessing it's because when the gameobjects for the options are removed the scrollview readjusts to show the maximum amount of content possible. I am wondering if there's a way to override this so that it didn't readjust, so that when the option disappear, it stays put, and then continues rendering from the last content piece. I looked through the code and played a bit with the ScrollToBottom() placements but that didn't seem to have any impact.
Realize it might be just the way Unity's scrollview works though. Thanks for any assistance.