Search Unity

Scrollbar Handle size snaps to 1 on play when used with ScrollRect....

Discussion in 'UGUI & TextMesh Pro' started by Steamc0re, Feb 25, 2015.

  1. Steamc0re

    Steamc0re

    Joined:
    Nov 24, 2014
    Posts:
    144
    No matter what I do, if I plug a scrollbar into a slot in a scroll rect and hit play, the handle size changes to "1", effectively making it so that no scrolling is possible. Is this a known problem?
     
  2. Steamc0re

    Steamc0re

    Joined:
    Nov 24, 2014
    Posts:
    144
    I figured it out. If your content is not bigger on the axis you have constrained the movement to, then a slider will always return 1 as your value (it can't move) and subsequently the slider makes the handle size 1 too, perhaps to show you it can't move.
     
    Pr0gr1m, Zaclo_Games and Novack like this.
  3. simbaDraco

    simbaDraco

    Joined:
    Oct 16, 2014
    Posts:
    18
    how did you solve this , I dont understand .
     
  4. Dabartos

    Dabartos

    Joined:
    May 26, 2016
    Posts:
    33
    use slider mate
     
  5. Zaclo_Games

    Zaclo_Games

    Joined:
    May 14, 2017
    Posts:
    6
    Thanks, this was really useful. It helped me solve the issue.
     
  6. MartinH8921

    MartinH8921

    Joined:
    Aug 27, 2021
    Posts:
    8
    I have the same problem. I still need a solution. This post doesn't explain it.
     
    russellnadin likes this.
  7. Pr0gr1m

    Pr0gr1m

    Joined:
    Sep 11, 2021
    Posts:
    6
    For those who didn't understand what does this mean. Just locate content, hit ,,t" key and just scale you'r content it worked for me