We just upgraded a project from 2019 LTS to 2020.2, and TMP from 2.0.1 to 3.0.3
I’m noticing one bug with rendering of inline sprites. It happens only in text fields which are being alpha-faded out, like flyout messages.
Inline sprites in those cases start glitching as soon as alpha starts changing, and it looks like this:
https://drive.google.com/file/d/14MQb2GleNdOTe1lJeKMXiACyit-ygwuw/view?usp=sharing
(20mb gif, please give it a minute )
The flyouts in the gif are “10 ” and “insufficient movement points”. As you can see, the icons get glitched immediately, and it looks like their UV coordinates get mixed up - it looks like they start pointing to a different part of the atlas? (You can see it especially well in the “10 ” case, where the icon gets replaced with some unexpected (but consistent) atlas fragment.)
The code that does tweening is very simple, and unchanged since 2019:
// TMPro.TextMeshProUGUI t = ...
LeanTween.cancel(t.gameObject);
LeanTween.value(t.gameObject, f => { t.alpha = f; }, 1f, 0f, duration)
.setEase(LeanTweenType.easeInCubic);
I can also confirm that commenting out the alpha fade-out stops the glitch.
This worked correctly in Unity 2019.4 LTS and its corresponding version of TMP.
Thank you for any advice you might have on this!