Search Issue Tracker

Fixed in 1.5.5, 2.1.5, 3.0.5

Votes

0

Found in [Package]

3.0.4

Issue ID

1327754

Regression

No

[UWP] TextMeshPro duplicates characters on HoloLens2 when using Chinese language

Package: TextMeshPro

-

Using using the OnScreenKeyboard in HoloLens2 to enter text into a TextMeshPro field while using the Chinese language, characters get duplicated in the output string.

How to reproduce:
1. Open the attached " TMPBug.zip" project
2. Open the "SampleScene2" scene
3. Build to UWP
4. Open built the solution in Visual Studio
5. Add the "Chinese (Simplified, China) Microsoft Pinyin" keyboard in Settings on the HoloLens 2
6. Start Debugging on either HL2 device or the emulator
7. Click on the "TMP input field" field
8. Switch to the Chinese keyboard
9. Make sure the lower left side of the keyboard shows "中" instead of "英"
10. Type "zhong" on the keyboard

Actual result: String is duplicated after each character entered resulting in this string: "zzhzhozhonzhong"
Expected result: All typed characters are shown individually ( z -> zh -> zho -> zhon -> zhong)

Reproducible with: 2021.2.0a213 (3.0.4)

Notes:
- This issue is due to a bug in the TextMeshPro package, were it doesn't properly handle InPlaceEditingAlloweed flag
- This issue is related to bug https://issuetracker.unity3d.com/issues/uwp-tmp-input-field-not-working-properly-on-hololens-2-builds in that the same TMP bug is the source for both issues
- This issue is related to this bug: https://issuetracker.unity3d.com/issues/tmp-input-field-chinese-slash-japanese-ime-issue-on-hololens-2-builds which fixed the text updates but not the duplicate characters

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.