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. Dismiss Notice

BestFit on TextComponent in Beta 20

Discussion in 'UGUI & TextMesh Pro' started by kujo, Sep 30, 2014.

  1. kujo

    kujo

    Joined:
    Aug 19, 2013
    Posts:
    106
    Just updated to Beta 20 and I've found best fit acts a bit strange.

    I have a button set to be size 90 using Impact font. When I check BestFit (I localise my text) and so I had maximum size set to 90. In doing this though, the text renders huge on the screen, I end up having to set the MaxSize down to 33, but that makes the text look a little soft.

    I've attached both screenshots
     

    Attached Files:

  2. PeteD

    PeteD

    Joined:
    Jul 30, 2013
    Posts:
    71
    I'm finding that anything that should autofit, best fit etc. etc. seems to have been broken in beta 20. Not sure what's happened here. It's like someone took a hammer to the layout controls.
     
  3. kujo

    kujo

    Joined:
    Aug 19, 2013
    Posts:
    106
    All the rest of my UI seems fine so far, still going through and testing it though. Its just the best fit text thats messed up and huge. Its as if best fit max is some kind of multiplier.
     
  4. PeteD

    PeteD

    Joined:
    Jul 30, 2013
    Posts:
    71
    If you have a scrollview try this. Put something larger in it, say 2048 * 2048 x 2 and then see if you can scroll around it correctly.
    My code is now not only ignoring best fit text settings it's ignoring the content fitter too. It shows fine in editor but, when you hit play none of the settings for the layout component or content fitter are applied. This seems consistent across both panels, scroll panels, images etc. etc.
     
  5. kujo

    kujo

    Joined:
    Aug 19, 2013
    Posts:
    106
    Had to roll back to b19... b20 continually crashes for my project when I open my UI scene.
     
  6. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,870
    Can you please file bug reports (with repro steps and repro project) if you didn't already? And please mention the case number here; if there's a regression in ContentSizeFitter then we'd like to fast-track it.
     
  7. kujo

    kujo

    Joined:
    Aug 19, 2013
    Posts:
    106
    I have for the crashing (Case number 636494). It seems the scene file is getting corrupt.

    I'll install b20 again and create a repo for the text rendering issue later today