Hey everyone,
I’m having a bit of difficulty using the tk2d UIText Input script.
I copied the whole ‘TextInput’ game object from the ‘1 - UI demo’. For my project, however, I have scaled TextInput by (400,400,0).
After scaling, I am able to see that the ‘EmptyDisplayText’ is displaying correctly. However, whenever I try to set the text to anything explicitly, it’s not visible on my screen.
Also, when I click on the ‘InputText’ GO, I don’t see anything listed under ‘Text’. I know that It is storing it, though, since I have to backspace and remove the contents before the ‘EmptyDisplayText’ appears again.
Oddly enough, if I were to manually set InputText’s ‘Text’ field, via the Inspector, I am able to see it populate as I would expect.
I tried digging through the code, and debugging to see what’s going on when I input text.
From my investigation, it looks like the following line in ‘FormatTextForDisplay’ is always true:
while (inputLabel.renderer.bounds.extents.x * 2 > fieldLength)
At this point, I’m not sure what to do. I feel that this is a very minor issue, but am not able to resolve it without spending a lot more time fiddling with it.
Does anyone know how to resolve this issue?
Regards,
Ezro