Symptoms:
- I get an exception when typing Asian characters (e.g. Korean, Japanese, Chinese, Thai) but don’t know why.
- I have noticed some strange bugs occurring with UI InputField.
Cause:
There could be many different reasons for these bugs to occur, such as caret position. We can’t always tell what the reason is but generally, it could be because of using UGUI Text and not Text Mesh Pro (TMP).
Resolution:
We recommend using the TMP package instead of the default UGUI Text. Unity only supports UGUI if there is a critical bug, so there is no new feature development for UGUI for now. If you use TMP, you can get the latest update and bug fixes, so it is highly recommended to use it for your project.
If you are using TMP but still facing a bug, please make sure that you upgrade the TMP package to the latest version. Alternatively, you can try the recent Unity Editor version as well.
Please let us know via the Unity bug reporter if you still experience an unexpected or unsolvable bug.
If you are in a situation that is not appropriate TMP, you can manually modify your UGUI package to fix the bug. For example, you could simply copy a code you want to modify from TMP source code, such as how to handle caret position, etc. However, please be careful since it is not verified officially.
To modify the package yourself, please see the Unity Knowledge Base article, 'How can I modify built-in packages?'.