Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug scroll jumps back

Discussion in 'UGUI & TextMesh Pro' started by ItsMe1423, Apr 12, 2024.

  1. ItsMe1423

    ItsMe1423

    Joined:
    Sep 23, 2020
    Posts:
    78
    Does any one know how to fix this issue?
    this is the game object that holds the content:
    upload_2024-4-12_15-12-24.png
    This is the view game object
    upload_2024-4-12_15-12-41.png
    and this is the game object with the scroll component:
    upload_2024-4-12_15-13-17.png
    I have no code in here and if I change the movement type to unrestricted it moves as it should but if I change it to clamped it doesn't move at all. I am also unable to relocate the content further up, if anyone has a solution I would love to hear it

    I have attached a gif of what happens when I try to scroll with elastic movement type
     

    Attached Files:

    leobcon likes this.
  2. ItsMe1423

    ItsMe1423

    Joined:
    Sep 23, 2020
    Posts:
    78
  3. leobcon

    leobcon

    Joined:
    Apr 27, 2024
    Posts:
    1
    This same issue is happening to me, can quite seem to figure it out
     
  4. ItsMe1423

    ItsMe1423

    Joined:
    Sep 23, 2020
    Posts:
    78
    if I remember correctly you need to play with the sizes of one of the objects, I think it was the highest one in the hierarchy for me

    EDIT: I added a content size fitter to the icons game object I am pretty sure that what fixed it for me