When we try to use the unity animator to anime either Color or Font_Color on a TMPro object, it starts throwing the following error:
IndexOutOfRangeException: Index was outside the bounds of the array.
TMPro.TMP_Text.FillSpriteVertexBuffers (System.Int32 i, System.Int32 index_X4) (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMP_Text.cs:6819)
TMPro.TextMeshProUGUI.GenerateTextMesh () (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMPro_UGUI_Private.cs:3905)
TMPro.TextMeshProUGUI.OnPreRenderCanvas () (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMPro_UGUI_Private.cs:1654)
TMPro.TextMeshProUGUI.UpdateSDFScale (System.Single scaleDelta) (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMPro_UGUI_Private.cs:4585)
TMPro.TextMeshProUGUI.InternalUpdate () (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMPro_UGUI_Private.cs:1573)
TMPro.TMP_UpdateManager.DoRebuilds () (at Library/PackageCache/com.unity.textmeshpro@2.1.3/Scripts/Runtime/TMP_UpdateManager.cs:153)
UnityEngine.Canvas.SendWillRenderCanvases () (at <6df2bf6e7bc1499cbb0f04556df8b702>:0)
I can’t figure out what it is or why it happens, i tried to isolate it as far as i can, and it seems that when all references in the animations to Color are removed, the screaming stops. But it is highly inconvenient that this doesn’t work.
New TMP releases should be available tomorrow / later today so I suggest you wait for version 2.1.4 to be available and see if you still get the same issue with the new release.
If you do get the same issue, then please submit a bug report with project and I will be more than happy to take a closer look.