Search Unity

[SOLVED] ScrollView does not scroll

Discussion in 'UGUI & TextMesh Pro' started by The-Little-Guy, Dec 31, 2015.

  1. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    I created a ScrollView, and placed a Text component on the Content gameobject. I then load in my text and it overflows, but I cannot scroll. Am I doing something wrong? Am I placing the Text component on the wrong object?

    ScrollView-Issue.png
     
  2. jprocha101

    jprocha101

    Joined:
    Apr 8, 2015
    Posts:
    134
    Do you have raycast check marked on the text component? The UI needs to have that to know you are touching it.
     
    karl_jones likes this.
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Dont place the text component on the Content. Create a new Text component and make it a child of the content GameObject.
     
    lekkii and jprocha101 like this.
  4. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    Ahh, yes there we go, that works!
     
    karl_jones likes this.
  5. Bogdan_blurry

    Bogdan_blurry

    Joined:
    Oct 29, 2018
    Posts:
    1
    I have this problem too, but I don't understand, how to do what you wrote.
    I wrote that code:
    Code (CSharp):
    1. Text.transform.SetParent(Content.transform);
    Isn't Text component the children of Content?