I have a Button in a Canvas, and when I set text button with English text, it works correct, but when set with Thai text, it delays up to 6 seconds (bad performance).
First I thought it was because I load many sounds and images, but after removing all of them, it's still slow, and if I change my Thai text, it works fast.
Does anyone know how to fix this issue?
public Text text;
void Start () {
text.text = "เพลงจิ้งจก";
}
I tried changing the font (Thonburi font), but no affect. So, my solution is change that text to image, which is a bad solution but cannot find any useful ways.
Last version of Unity has some performance issue on asian font due frequent call of iphone::GetFontPath()
in RequestCharactersInTexture
A possible solution is track all characters used on application (I have script that do it) and set a special font as custom set
with all characters used.
It is very hard to maintain but boost performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With