- Home /
Question by
Derf321 · Jan 18, 2015 at 07:32 AM ·
inputfield
Is there a way to get ALL inputField's characters?
I'm using 4.6 UI (love it!), and have multiple input fields. I noticed however that it will take the input only if you can visually see it in the input field. So if it's a small field that only fits 13 characters, it will only return 13 characters when called.
(ex.) User types in "Eric is a Unity god", the field only returns "s a Unity god". Is there a way to catch the overflow? I have my character limit set to 0 (unlimited).
Comment
Best Answer
Answer by KurtGokhan · Jan 18, 2015 at 10:25 AM
Here is a workaround. Make the child object Text under the InputField as wide as you want it to be. Add a Mask component to the InputField so it looks like it doesn't overflow but actually under the mask it does overflow. Now you can get the overflow.