- Home /
TextMeshPro input field returning different string to standard input string
I have a standard input field and a text mesh pro input field, and its been having some weird behaviour so I tested the two fields for equality using the following code. In all cases, even when the exact same text is typed into both fields it tests are not equal.
if(backupNameField.text == gameNameField.text) { Debug.Log("Same!"); } else { Debug.Log("Different! " + backupNameField.text + " " + gameNameField.text); }
Answer by Tsucasa · Mar 28, 2018 at 02:21 PM
I'm Having the same issue, Did you manage to fix this?
when i try to see the contents from the input field it just says Object which could be why as its not a string? but i'm pretty new to debugging in unity.
Your answer
Follow this Question
Related Questions
How to access a Text Mesh Pro Font Asset's glyp info from c#? 1 Answer
Display Emojis using its HTML code in a text 1 Answer
Hide or Show Text objects from ui.button 1 Answer
Updating ui not working in fixed update .But it works in update 1 Answer
How to setup TextMesh Pro Font Asset to include characters from all languages? 1 Answer