Search Unity

Question Can't get object to line up

Discussion in 'UGUI & TextMesh Pro' started by TiggyFairy, May 17, 2023.

  1. TiggyFairy

    TiggyFairy

    Joined:
    Dec 22, 2019
    Posts:
    506
    I haver this issue where all of the elements in a vertical layout group are lined up with the box they are in, except one - which just happens to be a grid layout with content fitter I ad items to dynamically. It doesn't seem to matter how I rejig it, it won't line up.

    examp.png

    I think what's happening is the icons are spreading out in both directions. But I'm just not sure how to stop this. Here is the window that's meant to keep it in line:

    upload_2023-5-17_10-19-46.png

    And here is the object holding the items.

    upload_2023-5-17_10-20-14.png

    Can anyone help?