- Home /
Question by
laurienash · Jan 25 at 11:14 AM ·
uisliderscrollview
Scroll rect with a slider - how to turn slider on and off depending if content is large enough to need scrolling
Hi,
I'm using a scroll rect with a slider instead of a scrollbar, as I want the handle to stay a fixed size.
When using the scrollbar, it automatically turns off when the content fits within the scrollview, and turns on when the content does not and needs to be scrolled in order to view all of it.
How do I achieve this same behaviour with a slider. Do I check the H Delta for the Content Rect Transform. Or is there an event I can listen out for? Unsure how it's being achieved with the scrollbar.
Thanks, Laurien
Comment