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
- Scene/Game view visually breaks and console is spammed with errors when using DepthBlit Sample Scene
- "GetOrAddComponent" method in "Unity.VisualScripting" returns "MissingComponentException" error when the "BoxCollider" Component doesn't exist
- Render Graphs Kebab Menu Buttons are missing padding and Highlight is uneven when hovered over
- Shader Keywords are not detected when defined in include files
- Right-clicking on Blackboard and Graph Inspector calls the contextual menu of the workspace
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.