Inline sprites glitch during alpha fadeout - after upgrade to Unity 2020.2, TMP 3

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 :slight_smile: )

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!

Ping - just curious if anyone is seeing this on alpha fadeout as well? (Or not seeing it?)

It happens for us in the editor, as well as in release builds. Tested on Windows only.

The Sprite Asset has been built with an older version of TMP (2.0.1) and just brought over, but that shouldn’t make a difference? Rebuilding the sprite asset didn’t make a difference. And as for the material/shader, the sprite atlas uses “TextMeshPro/Sprite” material, which sounds correct.