Reproduction steps:
1. Open the attached "BUG_Textmeshpro_GetSpriteIndexFromName" project
2. Open the "Assets/Repro" scene
3. Enter the Play Mode
4. Observe the results
Expected results: GetSpriteIndexFromName finds the 'Smiling face with smiling eyes' sprite
Actual results: GetSpriteIndexFromName does not find the 'Smiling face with smiling eyes' sprite
Reproducible with: TMP 3.2.0-pre.1, TMP 3.2.0-pre.7 (2021.3.34f1, 2022.3.18f1), UGUI 2.0.0 (2023.2.7f1, 2023.3.0b4)
Not reproducible with: TMP 3.0.7 (2021.3.34f1, 2022.3.18f1)
Could not test with: TMP 4.0.0-pre.2 (2021.3.34f1, 2022.3.18f1), UGUI 3.0.0-exp.3 (2023.2.7f1, 2023.3.0b4) (spriteInfoList is not defined)
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Note: In 2023.2 and 2023.3. streams the TextMeshPro package is no longer available as it was merged into the UGUI package