Search Issue Tracker
By Design
Votes
0
Found in
5.6.0f3
Issue ID
900929
Regression
No
When there is no text in the TextMesh Pro Input Field, the length of it is 1
Reproduction steps:
1. Open the attached project "exampleProject.zip";
2. Open the scene "Test-InputField";
3. Enter Play mode and click the button "Ok";
4. Observe Console window results;
Actual result: Text Mesh Pro Input field has no text in it, however the length of the text is 1.
Expected result: When there no text in the Text Mesh Pro Input field, the length of it should be 0.
Note: Everything is working fine with Unity Input Field. The problem is with Unity package "TextMesh Pro".
Reproduced with: 5.5.0b1, 5.5.3f1, 5.6.0p1, 2017.1.0b1
Can not be tested with 5.4 version because of the errors.
Comments (1)
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
- [Win] Player splashscreen does not fade into the first scene unlike shown in the preview
- "Open Reference" button on Lens Flare (SRP) component opens a missing page when no URP asset is assigned in Project Graphics Settings
- HDRP Light shadows switch Type from Soft to Hard after re-enabling the Shadow Map option
- [AI Assistant] Banner content is clipped and inaccessible when Assistant window is docked or narrow
- Crash on CheckDeviceStatus when opening a UI Panel in Play mode on a specific project
esd1989
Jul 03, 2019 11:51
Saw a similar issue in 2018.3.6f1, but in my case, I realized that I was accessing the TMP_Text component instead of the TMP_InputField. Using the TMP_InputField and accessing it's text property and checking the length outputs the correct values. Not positive as to the reasoning behind why it behaves this way, but I've definitely seen odd things like it before.