I’ve been working extensively with TextMeshPro for a card game, I have a generic card prefab that gets instantiated and all of the data points change based on info from an xml. I’m currently fighting with TMP over the Auto Size, for some reason, not always scaling to the Rect Transform and setting the font size to the maximum.
Here is how the card looks normally. notice how the text is staying within the bounds of the Rect Transform
It fits very nicely even if i fill it with hundreds of characters.
However, when I hit Ctrl+Z, or when the cards are instantiated in-game, this happens. I’ve tried playing around with Content Size Fitters, Layout Elements, and Layout Groups but to no avail.

Any advice would be most appreciated, thank you.
Please make sure that you are using the latest release of the TMP package for testing purposes as I have made some changes there. The latest release is Preview 8. Preview 9 should be available within the next 7 days or less.
Now in terms of the potential issue, it is always most helpful for me to get a repro project so that I can take a closer look at what specifically is causing the behavior that you are observing. The easiest way to provide me with a repro project is to simply submit a bug report with the included project and to then provide me with the case # here once Unity emails it back to you.
As a general note, the Canvas Layout system has issues dealing with text which is more complex than images or other UI elements. I can provide more insight on this once I figure out if the behavior you are running into is related to that or not.
1 Like
I feel pretty silly, updating to 2.1.0 seems to have fixed my issues. Thank you, you’ve saved me from more days of stress 