Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Solved] How to make a Vertical Layout Group overflow vertically if there is no space in the panel?

Discussion in 'UGUI & TextMesh Pro' started by 420BlazeIt, Aug 14, 2015.

  1. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    I need this for a server browser.

    Instead of scaling layout elements down to fit the panel, how do I make it just overflow vertically?
     
  2. DWilliams

    DWilliams

    Joined:
    Jan 12, 2015
    Posts:
    63
    I think what you want is to have each element itself to be a specific set size so the vertical group positions them but keeps their size explicit. Use a Layout Element component on all the elements and set their min/max height appropriately.
     
  3. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    Yes this did the trick :D Thanks!