Search Unity

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,689
    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