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

Unity UI Problem with vertical alignment/size in horizontal layout group

Discussion in 'UGUI & TextMesh Pro' started by Max-om, Sep 22, 2022.

  1. Max-om

    Max-om

    Joined:
    Aug 9, 2017
    Posts:
    486
    We have a panel that is reused in different canvasas We one one larger version of our menu with two teams

    upload_2022-9-22_17-36-20.png

    Here my horizontal layoutout group works because the text is not wrapped

    upload_2022-9-22_17-37-3.png

    On our one team version the text gets wrapped like this. The checkmark button proportions are now wrong
    upload_2022-9-22_17-38-26.png

    How can I get the button to center correctly like the single line text does (text saying 12/12)
     
  2. Max-om

    Max-om

    Joined:
    Aug 9, 2017
    Posts:
    486
    I have sort of solved it with this

    upload_2022-9-22_17-53-19.png

    But the round checkmark is slightly asymmetrical when it should have same width and height
     
  3. Max-om

    Max-om

    Joined:
    Aug 9, 2017
    Posts:
    486
    Without any change it broke. Seems like GUI is broken?
     
  4. dinozafr

    dinozafr

    Joined:
    Jun 16, 2015
    Posts:
    3
    Put a check mark inside Empty GameObject. And nothing will affect it