Search Unity

[Solved] Unity uGUI Dropdown WebGL Issue With Special Chars

Discussion in 'UGUI & TextMesh Pro' started by theylovegames, Jan 19, 2017.

  1. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    Last edited: Jan 19, 2017
  2. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    I did uncover a WebGL bug.

    The repro project displays special characters just fine in the editor.
    https://github.com/tgraupmann/UnityWebGLDropdown

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

    unity_editor_chars.png

    unity_webgl_chars.png
     
    ZimskiVuk likes this.
  3. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    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.
     
    ZimskiVuk likes this.
  4. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    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?
     
  5. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176