Search Unity

TextMesh Pro TextMesh Pro Input field and MySQL database

Discussion in 'UGUI & TextMesh Pro' started by kdarius43, Apr 21, 2018.

  1. kdarius43

    kdarius43

    Joined:
    Mar 16, 2015
    Posts:
    170
    hello I am using text mesh pro's input fields to get some information. when I move this information over the MySQL database it has ​ at the end of each of the text fields. Is there a way to stop this from happening. Thank you very much.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    Make sure that you are grabbing the text from the TMP_InputField.text and not from the child TMP_Text object.

    The child TMP_Text.text is used to display raw text. For instance this could be a password where the TMP_Text.text contains "****" and the TMP_InputField.text the actual password "1234".
     
  3. kdarius43

    kdarius43

    Joined:
    Mar 16, 2015
    Posts:
    170
    BAM! worked perfect thank you very much!
     
    Stephan_B likes this.