- Home /
WebGL build Japanese IME
Hi,
I am using Unity 5.3.5f1 A simple project which text input(Japanese IME input) -> ApplicationExternalCall -> html: Japanese text would be built with WebGL build. Built html file works well for English text input, but if try to input Japanese character using Japanese IME on the html on FireFOX46.0.1, it does not work.
I have just tried,
void Start () {
Application.ExternalCall("SendMsg","Here Japanese Characters");
}
then, the message Japanese strings were sent to html side successfully. So, I guess that this issue is Japanese IME on webGL html.
I tried input field and text field.
void OnGUI() {
GUI.skin = GUISkin1;
GUI.skin.button.normal.textColor = Color.white;
GUI.skin.label.normal.textColor = Color.cyan;
GUI.skin.label.fontSize = 24;
AutoResize (800, 800);
input_text = GUI.TextField (new Rect (Screen.width / 8, Screen.height / 10 * 6, Screen.width / 8 * 2, Screen.height / 20 * 2), input_text);
if (GUI.Button (new Rect (0, Screen.height / 5 * 2 , Screen.width / 8, Screen.height / 10), "send")) {
//Application.ExternalCall("SendMsg",inputField_text);
Application.ExternalCall("SendMsg",input_text);
}
}
BTW, Japanese display on LABEL is OK using GUISkin with Japanese font sets. So Japanese character on html would be displayed. But this GUISkin does not work for input field or text field. Japanese IME ON inputs English characters to the text field or input field.
So my question is Japanese IME input OK for WebGL build ?
Thank you in advance. Regards,