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

Difficulty scaling children

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Jul 19, 2017.

  1. Deleted User

    Deleted User

    Guest

    I am having lots of trouble scaling children to the device size. I have a multiple-page UI, where each page is contained in a panel. Each page's panel contains a horizontal layout group with 2 children: an image and a TextMesh Pro text box. The image on every page has the same native size, but the contents of the text box are different.

    I can't get all the images to scale to the same size. It seems like the contents of the text box dictate how big the image gets. It seems like it should be simple to make each child 50% of the screen width, but I have spent hours trying to get this to work.

    Any suggestions?