- Home /
Question by
fanzhi · Oct 18, 2017 at 05:45 AM ·
uiunity5inputfield
Input Field caret position is wrong when I type Chineese using Win10 System IME.
Reproduce. 1. I Built one sample app, It only have standard input field. 2. I build it as Windows APP. 3. As you see, when I type chineese, Caret appear at middle top of Input Field. 4. About all Asian Characters It acts same.
Please help me to fix it. Thanks for reading.
unity-inputfield.png
(157.3 kB)
Comment
Answer by fanzhi · Oct 18, 2017 at 12:02 PM
I found when I type chinese chracters, TextGenerator.characterCountVisible is zero. In Unity Editor It is not zero,It shows current visible character count. I dont know why it is zero on windows.
unity-inputfield-1.png
(136.5 kB)
I tested above code at Unity 5.6.1f,And It works well. Previous test environment is Unity 5.2.4f and Windows 10.
As my debugging result, InputField(5.2.4f) doesn't receive $$anonymous$$eyDown Event when composition string work.