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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.