How to Count Characters in an InputField and Display them on TMP Text.
Hey! I'm really new to C# and to give you context regarding my question, I'm making a scene where the player types in their username, however there is a character limit to the InputField. I want to be able to make a script where I can count the characters in the inputField while the user is typing and be able to convert that amount of characters into an integer that is then placed into a TMP Text.
To visuallise for you so you can get a better understanding of what I'm trying to say please look at this photo below:
so for example a user types Hello as their username, the console will be able to count the amount of characters in the word "Hello" (which is 5 characters) and then it will be shown on the screen in this case
5/25.
Please help! Thank you!
Your answer
Follow this Question
Related Questions
How to change caret position inside Input field using mouse position 0 Answers
Input Field Problem 0 Answers
How can I reset the placeholder of an input field back to the default readout? 2 Answers
How do I let users change the background color of a selected word in an input field? 0 Answers
how to use scientific values in inputfield unit or restrict only some letters 0 Answers