[Solved] Unity uGUI Dropdown WebGL Issue With Special Chars

It appear that the Unity uGUI dropdown doesn’t work in WebGL (Chrome).
https://theylovegames.com/UnityWebGLSpeechDetection_02SpeechCommands/

I’ll have to make a repro project to confirm.

And the repro project works as expected.
http://theylovegames.com/UnityWebGLDropdown/

I don’t have a fancy UI, it’s just a canvas some buttons and drop down. It works in Firefox and not Chrome. I’ll mess with the layering and maybe that’ll fix it.

I did uncover a WebGL bug.

The repro project displays special characters just fine in the editor.

But WebGL fails to show the same special characters that the editor displays with the Arial font.

2927476--216381--unity_editor_chars.png

2927476--216382--unity_webgl_chars.png

1 Like

My original dropdown issue was I had a panel below the dropdown. And so the click gets absorbed by the panel before the dropdown on Chrome, but not Firefox.

1 Like

It’s odd that the editor displays simplified Chinese characters just fine, but the WebGL build is missing fonts. Isn’t there a way to fallback to the browser fonts?

I used a Unicode font and it works like a charm!
http://tagenigma.com/blog/2015/06/11/blender-make-simplified-chinese-3d-text-in-blender/

Solved.