Search Issue Tracker
Fixed in 3.2.0-pre.3
Votes
1
Found in [Package]
3.2.0-pre.2
Issue ID
1382173
Regression
No
[TextMeshPro] 'lastCharacterIndex' is 0 when the text ends with a '-' character
Reproduction steps:
1. Open the attached "1382173.zip" project
2. Open the "TMPBugScene" Scene
3. See the "Last Character Index: 13" message in the Console window
4. Select the "Text (TMP)" Game Object
5. Add the "-" character at the end of the "This is a test" Text in the "TextMeshPro - Text" Component in the Inspector window.
6. Observe the Console window
Expected result: "Last Character Index: 14" text message is shown
Actual result: "Last Character Index: 0" text message is shown
Reproducible with: 3.2.0-pre.1, 3.2.0-pre.2 (2019.4.31f1, 2020.3.23f1, 2021.2.2f1, 2022.1.0a15)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 3.2.0-pre.3):
Fixed in: 3.2.0-pre.3 (Available in 2020.3.0f1 and above)