Search Unity

Resize button according to text to a max size

Discussion in 'UGUI & TextMesh Pro' started by janlovsin, Jun 25, 2019.

  1. janlovsin

    janlovsin

    Joined:
    Jun 7, 2018
    Posts:
    12
    I added a picture and if you look at the button in blue... It resizes according to text inside and it is working fine. I'm using fitter, horizontal and layout element. But is there a way to make text use BEST FIT when it reaches a certain size.

    So if text is bigger than width of whole screen start resizing font.
     

    Attached Files:

  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231