- Home /
Question by
Rugbug_Redfern · Feb 02, 2019 at 05:32 PM ·
uiscrollbar
ScrollRect Scrollbar Auto Hide and Expand Viewport
For a while now I've wondered how the "Auto Hide and Expand Viewport" property of a scrollrect worked. Supposedly it hides the scrollbar when not needed and expands the content to replace the area where the scrollbar used to be. However, whenever I try to use it, it just tells me this:
I have no idea how to meet the specifications it requires. Does anyone know what I need to do to get this to work? Here is my hierarchy: RoomListings has the ScrollRect component, Scrollbar has the Scrollbar component, and Content has a Vertical Layout Group component.
Thank you in advance :)
capture.png
(9.3 kB)
capture.png
(1.6 kB)
Comment
Best Answer
Answer by Rugbug_Redfern · May 07, 2020 at 11:54 PM
Here's how... It was pretty self-explanatory.
fixed-scrollbar.png
(2.8 kB)
Your answer
