Search Unity

Scale button based on amount of child text

Discussion in 'UGUI & TextMesh Pro' started by ZigZagZat, Mar 28, 2021.

  1. ZigZagZat

    ZigZagZat

    Joined:
    Mar 6, 2021
    Posts:
    12
    I have a TMP button and I want the width to automatically expand to fit the text in. How could I achieve something like this?
     
  2. ZigZagZat

    ZigZagZat

    Joined:
    Mar 6, 2021
    Posts:
    12
    Never mind, I figured it out