Search Unity

Bug TextMeshPro Input Field is Broken

Discussion in 'UGUI & TextMesh Pro' started by peq42, Sep 30, 2022.

  1. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74



    As you can see, it simply is broken. No strings are being passed to the function
     
  2. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    up?
     
  3. Armynator

    Armynator

    Joined:
    Feb 15, 2013
    Posts:
    68
    I think this is by design. The UI events you can define in the editor pass exactly the variables you defined. You left the string to pass empty, so it it passes an empty string to your method.

    You still can get the current string yourself by using a reference to your InputField. Just use myInputField.text instead of the method argument.
     
  4. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    but it used to work until the previous version?