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

Bug content size fitter and vertical layer group shifts "content" upward

Discussion in 'UGUI & TextMesh Pro' started by bybola59, Nov 5, 2023.

  1. bybola59

    bybola59

    Joined:
    Mar 16, 2019
    Posts:
    21
    Hello, Im making a scrollable inventory and I came across a problem where content size fitter or vertical layout group would shift the "content" upward outside of content view.

    This is what I visually want:


    Once I run the game, when I add slots to content, the scroll won't let me go any further outside of the content view.

    To repair this, I added to content, size fitter and vertical layout group which works and let me scroll all the way down when adding slots, HOWEVER, when adding one of the two components, this happens:


    content is pushed upward and I can't move it back.

    How can I place content in its position in the first image?
     
    Last edited: Nov 5, 2023