I tried pasting Jane Austen’s Emma from the Gutenberg Project into an InputField (only the actual book, not what’s before and after it), which has no character limitation at all (all settings are the default ones), and it limits the text to stop at ““A straightforward, open-hearted man like Weston, and a rational, unaffected woman like Miss Taylor, may be safely left to m” (last sentence shown in the field), which is located in the first chapter (Ctrl+F’ed to find it).
LibreOffice Writer shows that the whole text has a character count of 874,323 characters, including spaces. (Tools->Word Count…)
The text that my input field contains is a mere 16,214 (likewise with spaces).
It has surely nothing to do with the copied text, as I pasted it into a doc in LO Writer and it’s whole there.
Anyone knows why this happens? Does Unity limit characters even in limitless InputFields and I have just surpassed the limit? Or do I have a setting wrong?
Thanks.
Try manually, or through code, setting and/or printing out the InputFields char limit (see here) to see if it has some shorter default. Or just set it to 0 (which is infinite, so no, there doesn’t appear to be a limit)
Also, when pasting from other applications (such as LibreOffice), there’s ALWAYS hidden characters that you cant see, but that may be messing things up in Unity. To get around this, try saving the text into a pure text file (.txt) format, with no special/hidden characters, and then paste it into the InputField. Or, better yet, read the text input using code, and then set the text of the InputField using the same code.