Author Topic: Resizing Scrollbars for different resolutions  (Read 2576 times)

bkinsey

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 30
    • View Profile
Resizing Scrollbars for different resolutions
« on: December 18, 2014, 08:27:23 PM »
My game supports multiple resolutions, and for larger resolutions, I generally don't scale the UI, instead I increase Scroll View's, so that they show more content. However I recently added scrollbars, since mouse users are not used to click/dragging scroll views.

I am not able to set the Thumb's Anchor, so even though the slider background will scale correctly, the thumb will not.  The 2 attached screenshots illustrate the problem. In 800x480 resolution, the resolution I usually work in, I set the size of the thumb to look correctly. But when I increase the vertical resolution, as is normal on desktop PCs, the thumb's no longer fill the correct amount of space over the background. What's the solution?

Also, is there a preference between the UISlider and UIProgressBar scripts? I think the documentation is slightly outdated. I'm using the UISlider, I've tried both and didn't seem to make any difference. Is one deprecated, or slider for scrollbars and progress bar for progress bars?