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.
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.