Search Unity

TextMesh Pro WebGL Copy - Paste for Input Field not working

Discussion in 'UGUI & TextMesh Pro' started by MaT227, Sep 6, 2017.

  1. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    Hi there,

    I am using Unity 2017.1.0p4 with TextMesh Pro from the Asset Store in WebGL.
    I am facing an issue with Copy - Paste. I am not able to copy something from outside the WebGL window inside an Input Field but it works if I copy something from Unity and past it inside the input.

    Is there any way to fix this ?
    Thanks a lot !
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    To try to determine if this is input field related or not, can you see if copy / paste works with the UI Input Field or if it has the same behavior?
     
  3. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    Thanks for your fast answer @Stephan_B !

    After a fast test here are the results.

    In Editor
    • UI InputField - Outside to Unity and Unity to Unity : OK
    • TextMeshPro Input FIield - Outside to Unity and Unity to Unity : OK
    WebGL
    • UI InputField - Outside to Unity : FAIL
    • TextMeshPro Input FIield - Outside to Unity : FAIL
    • UI InputField - Unity to Unity : OK
    • TextMeshPro Input FIield - Unity to Unity : OK
    It seems that it's more related to Unity itself than TextMeshPro, do you still have any idea about where does this comes from ?
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Let me ask as few people inside Unity. I would also suggest asking in the Plaftorms / Webgl forum section as this might be specific behavior to WebGL and security stuff (perhaps)
     
  5. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
  6. mKleinIQ

    mKleinIQ

    Joined:
    May 16, 2017
    Posts:
    10
    Any news on this?
     
  7. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    No updates on my end as this behavior is specific to WebGL.

    Has anyone cross posted about this on the WebGL section of the forum or filed a bug report about this behavior? If so, please provide a link or case number for the bug report which I can then take a look at and try to follow up on with the appropriate folks at Unity.
     
  8. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    mKleinIQ likes this.
  9. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
  10. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    Yep :( Thank you for taking the time to answer our questions and getting back to us ;)