Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How can i resize the Cell Size for a Grid Layout Group

Discussion in 'UGUI & TextMesh Pro' started by pcorazao, Apr 3, 2015.

  1. pcorazao

    pcorazao

    Joined:
    Mar 1, 2015
    Posts:
    5
    Hi,

    I am using Unity 5, and working with a Grid Layout Group, I am making an iPhone app, and the grid looks perfect in the game view on 9:16 and looks good on the Unity Remote 4 app. However when i build and deploy to my iPhone with xCode, the grid is extremely small.

    Is there a way to have the grid mind a ratio or percentage of the screen?
     
  2. pcorazao

    pcorazao

    Joined:
    Mar 1, 2015
    Posts:
    5
    Ended up going with a Horizontal Layout Group followed by several Vertical Layout Group within.
     
  3. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Use layout Elements on the children to fix their sizes. Else the Grid will auto-resize the grid.
    You can also combine with a ContentSizeFitter on the grid to make it resize itself to the size of its children