Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug TextMeshPro(3.0.6) Input Field WebGL build culture issue

Discussion in 'UGUI & TextMesh Pro' started by AndreaGalet, Dec 24, 2022.

  1. AndreaGalet


    May 21, 2020
    Hi everybody,

    I notice this error only when building my project as webgl, for example on a windows build or in editor everything is working fine.
    I setted the Input field Content Type to Decimal Number and i specified the game CultureInfo to en-US.
    The problem is that on the final webgl build the input field is not stopping me from writing a comma as it does in the Editor.


    Code (CSharp):
    1. CultureInfo cultureInfo = new CultureInfo("en-US", false);
    2. CultureInfo.CurrentCulture = cultureInfo ;

    Attached Files: