I’m trying to get a little command prompt setup, but I’m running into a problem where the InputField will let me start typing text before it actually begins. This gif shows the problem: Imgur: The magic of the Internet
Any reason for this?
I’m trying to get a little command prompt setup, but I’m running into a problem where the InputField will let me start typing text before it actually begins. This gif shows the problem: Imgur: The magic of the Internet
Any reason for this?
Adding a Content Size Fitter component to the inputfield and moving the text object back to the right place fixed my problem.
The Text child of Inputfield could be off the limits of inputfield itself. Check the size of it and see if it is overflowing in the left side.
– aditya007other possible [solution][1] [1]: http://answers.unity3d.com/questions/1208829/add-a-prefix-to-an-inputfield.html
– aditya007Funnily enough, I asked that question too. I checked, and the text element is indeed overflowing the limits of the InputField. I have the prompt being autoresized to fit its text, and the text component doesn't seem to move when the InputField does. I tried the strategy you linked, but I have the same problem, except with the caret, which doesn't follow the text component when it moves.
– MadDoctor5813