Search Unity

Native iOS copy/paste/select in a TMP Input Field

Discussion in 'UGUI & TextMesh Pro' started by unnanego, Mar 9, 2019.

  1. unnanego

    unnanego

    Joined:
    May 8, 2018
    Posts:
    199
    In the editor I can select, copy, paste and put the caret anywhere in the text, but on iOS this doesn't work - I can't copy/paste/select or move the caret. How can this be implemented? Can't test on Android yet(
     
    JVimes and AlonMixed like this.
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What version of TextMesh Pro are you using?

    When HideMobileInput is false, all copy / paste and selection is done via the iOS virtual keyboard / input field line above the virtual keyboard. When HideMobileInput is enabled, you should be able to insert the caret and select the text in the GameView input field itself.

    These changes require the latest release of TMP for Unity 2018.3 which is version 1.4.0-preview.xx
     
    AlonMixed and unnanego like this.
  3. unnanego

    unnanego

    Joined:
    May 8, 2018
    Posts:
    199
    I updated, now I'm able to move the caret and select the text, but there's no option to copy/paste. HideMobileInput is enabled.
     
    luchopops76 likes this.
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What do you mean by option to Copy / Paste? Do you mean some type of context menu that would show up to allow Copy / Paste of portions of the text that have been selected?
     
  5. unnanego

    unnanego

    Joined:
    May 8, 2018
    Posts:
    199
    yes, iOS standard action menu: http://atmac.org/contents/uploads/2014/10/ios8-inline-editing-menu.png

    there's a plugin Advanced Input Field that claims to support that.
     
    unbreakable3D likes this.
  6. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The above functionality is part of iOS.

    In order to provided similar functionality on all devices / platforms, this would have to be implemented inside of Unity and the TMP Input Field.

    Let me think about this one. I'll provide feedback as soon as I have more information to share.
     
    AlonMixed, unbreakable3D and unnanego like this.
  7. unbreakable3D

    unbreakable3D

    Joined:
    Jun 13, 2017
    Posts:
    5
    Hoping to do have access to the edit/select menu in iOS too, and customize it. I believe it is the UIMenuController object.
     
    unnanego likes this.
  8. stansison

    stansison

    Joined:
    Feb 20, 2016
    Posts:
    28
    Has there been any update on this or would creating a custom keyboard be more Time effective?
     
    unnanego likes this.
  9. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    Same question as stansison here - any updates on this?
     
    unnanego likes this.
  10. nima8

    nima8

    Joined:
    Nov 28, 2019
    Posts:
    10
    Any solution to this?
     
    unnanego likes this.
  11. stansison

    stansison

    Joined:
    Feb 20, 2016
    Posts:
    28
    iOS 13 has 3 fingered gestures that circumvent the need for this. But the InputField catching 3 fingered event works wonky. Sometimes it works, most times it just removes the focus from the InputField and hides the keyboard.

    Catching and responding to the 3 finger gesture seems an easier method, would it be possible to get this?
     
  12. Bizquit110

    Bizquit110

    Joined:
    Nov 15, 2016
    Posts:
    12
    Also struggle with the same problem =(
     
  13. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,085
    Confirmed that hide mobile input, copy/paste does not work on iOS in both regular UI input and TMP in Unity 2020.1.4f1
     
    ROBYER1 likes this.
  14. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,085
    Checking back
     
  15. MassiveTchnologies

    MassiveTchnologies

    Joined:
    Jul 5, 2016
    Posts:
    87
    Native Keyboard Mobile Input doesn't show even if "Hide Mobile Input" is set to false
    iOS 14 and Unity 2020.1.4f1.
     
  16. Sudarmin-Then

    Sudarmin-Then

    Joined:
    Nov 27, 2014
    Posts:
    27
    Is this fixed yet? In what version is this fixed?
     
  17. lrtrime

    lrtrime

    Joined:
    Sep 16, 2020
    Posts:
    7
    Looking forward to a fix too here...
     
  18. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    2 years later, is there any update on this?
     
    unnanego likes this.
  19. HD43

    HD43

    Joined:
    Jul 10, 2018
    Posts:
    8
    no answer?
     
    AlonMixed and unnanego like this.
  20. Mekumyanov

    Mekumyanov

    Joined:
    Mar 31, 2017
    Posts:
    7
    Any news?
     
    AlonMixed and unnanego like this.
  21. stormdevelop

    stormdevelop

    Joined:
    Sep 6, 2018
    Posts:
    1
    Any news?
     
    ROBYER1 and AlonMixed like this.
  22. AlonMixed

    AlonMixed

    Joined:
    Dec 10, 2017
    Posts:
    23
    Any news?
     
    ROBYER1 likes this.
  23. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    Any news?
     
    AlonMixed likes this.
  24. Sudarmin-Then

    Sudarmin-Then

    Joined:
    Nov 27, 2014
    Posts:
    27
    Any news?
     
    ROBYER1 and AlonMixed like this.
  25. bicen

    bicen

    Joined:
    Jul 25, 2019
    Posts:
    1
    any news?
     
    ROBYER1 likes this.
  26. CoinSoup

    CoinSoup

    Joined:
    May 25, 2022
    Posts:
    1
    Same and furthermore in Unity 2021 LTS, even after adjusting Caret width it still doesnt show in the input-field for IOS builds (if disabled "hide mobile input")

    On the other hand,

    Setting
    Enable: Read Only + Hide Mobile Input

    Result
    can't copy & paste or select
     
    Last edited: Jul 8, 2022
  27. krenar_

    krenar_

    Joined:
    Dec 11, 2020
    Posts:
    10
    any news?
     
  28. alentt

    alentt

    Joined:
    May 21, 2019
    Posts:
    4
    Still no solution?
     
  29. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    106
    Bumping this! This is a basic accessibility feature, so it'd be really appreciated if there was a standard approach to it.
     
  30. TristinNewby

    TristinNewby

    Joined:
    Nov 7, 2018
    Posts:
    1
    I'm shocked this is still an issue. I would also like to see it fixed or have some work around
     
  31. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    106
    Ditto. We've ended up making the call to move away from Unity for our current project in because of the lack of common OS standard/accessibility features, which I'm pretty disappointed by.

    I'd really appreciate it if a Unity rep could comment on this issue, even if just to say it's not something that's being considered - having to constantly go to my tech lead and say "I don't know, and I can't find out why" is seriously undermining their confidence in Unity as a platform.
     
    DodgeVision, artoonie and ROBYER1 like this.
  32. melitoren

    melitoren

    Joined:
    May 13, 2020
    Posts:
    5
    any news?
     
    AlonMixed likes this.
  33. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    48
    any news?
     
  34. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    106
    Yeah please can someone from Unity please get back on this? This is not the only 5 year old thread I'm subscribed to which has devolved into this terrible bumping joke and I'm getting sick of it.
    This is Unity's own forum, monitored actively by devs. Not wanting to build this feature is fine, as is not being entirely the right person to answer it; but we need some sort of acknowledgement that this feedback has been taken into account, and some indication of if and when it'll be addressed.
     
    AlonMixed likes this.
  35. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    835
    We are aware of this feature request and we have it logged internally. However we have many higher priority tasks, so this feature request is not planned.
     
    AlonMixed and tomkail_betterup like this.
  36. Jimb4ik

    Jimb4ik

    Joined:
    Jun 3, 2018
    Posts:
    8
    Please update on copy/paste native iOS pop up menu. Is it worth to wait? Is it planned this year?

    Thank you very much in advance
     
    AlonMixed likes this.
  37. DodgeVision

    DodgeVision

    Joined:
    Dec 30, 2012
    Posts:
    3
    I came across this, and in traditional Unity Forums fashion... I got no help looking at how to get mobile copy pasting in my Unity project lol. GOOD NEWS THOUGH! I found this and it's awesome, free and easy to integrate!

    https://github.com/development-fennecx/AdvancedInputField

    I just thought I would leave this here to save someone the trouble of looking for days, hearing the usual "nothing" from Unity's own devs, and having to make a custom solution... lol! This lets you do all kinds of things... like copy, cut, and pasting!

    Peace out bros!
     
    AlonMixed and ROBYER1 like this.
  38. AlonMixed

    AlonMixed

    Joined:
    Dec 10, 2017
    Posts:
    23
    It is mentioned in the beginning of the topic =)