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

Bug Grid Layout Group's Horizontal option for Start Axis doesn't work, behaves the same as Vertical

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Aug 18, 2021.

  1. Deleted User

    Deleted User

    Guest

    Last edited by a moderator: Aug 19, 2021
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,910
    There is no bug. It uses the width of the parent.

    You can change the width of the parent from code (number of buttons * button width + spacing). Alternatively, the Horizontal/Vertical Layout Group components also calculate a width/height which can be used by a Content Size Fitter, so maybe some combo of those will work.
     
    Last edited: Aug 19, 2021
  3. Deleted User

    Deleted User

    Guest

    Ah I see. Thank you so much. Changing the width value of the parent from the inspector worked just fine.