When you use Scaler in Scale with Screen Size and use different than reference resolution caret has wrong size and position.
I guess problem is in GenerateCursor method as it doesn’t take Canvas().scaleFactor into consideration and changes height only if Text’s font is Best fit.
I just started investigating it, maybe someone has fix already? or there is a registered bug in progress?
Yeah, 5.1f3 still has this bug. Has anyone managed to find a workaround for this until Unity patches? Copying the InputField script and its dependencies into my project doesn’t seem to do anything, and replacing the UI system in 5.1 with the built 5.0.2 solution from Bitbucket results in all sorts of UI text fubar.
Glad you found it, Thrawn. How did you reproduce it? I build an empty project and found that new InputFields worked fine, but all my old ones were borked, even if they looked the same in the inspector. I had almost resigned myself to going through and recreating all of my old fields.
Honestly don’t know exactly how. I created an input field exactly with the same configuration and parents like my other project and it worked well! Then I converted it to a prefab, changed font from Arial back and forth, and after one or two reloads, the issue started to occur as well.
That’s odd, it happens to me every single time I create an InputField as long as I’ve put the Canvas Scaler to scale with screen size. Maybe the problem varies depending on the version of Unity?
Still an issue in 5.1.2. Where’s the issue tracker link for the reported bug so we can pile on? It probably ought to be re-reported anyway. I’ve done so on my end.
While I was hoping for a fix in a patch release, since the issue does horribly break a lot of game UI, at least we can expect a solution by the “next major version,” which I presume to be 5.2 on September 8.
correct the issue should be fixed in 5.2 reason it’s not a patch release is that we changed a bunch of stuff in text generation to make the caret positioning calculation more accurate. This sort of major change shouldn’t be done in just a patch.