Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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.
     
    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:
    32
    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.