Getting ‘ZERO WIDTH SPACE’ character at the end of text from Input field
Is it ok !?
1 Like
When working with the TMP_Input field, make sure you use the .text property of the TMP_InputField and not of the underlying text component.
For instance, in the case of a password, the text component would contain “*******” whereas the TMP_InputField.text would contain the actual password.
This Zero Width Space is used in the underlying / child text component for layout purposes only but since you should not be referencing / using this .text property, it should not matter.
10 Likes
Ohh, now I see what was wrong! Thanks!
1 Like
same problem here, thanks for sharing the fix!
Hello @Stephan_B I also used the TMP_InputField.text but still it produced same error. need help, thanks