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
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
- Errors and warnings are thrown after installing Visual Effect Graph Learning Samples
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.