Search Unity

Bug TextMeshPro(3.0.6) Input Field WebGL build culture issue

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

  1. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    101
    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.

    CultureInfoCode:

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

    Attached Files: