Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Oculus Quest TextMeshPro Inputfield.caretPosition not setting right

Discussion in 'VR' started by DebugDotLog, Nov 26, 2020.

  1. DebugDotLog

    DebugDotLog

    Joined:
    Feb 1, 2019
    Posts:
    23
    Hello there,

    So i've been developping an app for Quest and in that app I need to use some input fields. But it seems that the behavior of the caret is not the same in VR as it is on the Editor.
    In fact, when I'm on the Editor I can reliably set the caret position with click input and then insert string depending on the caret position at the time. In VR this doesn't work well. I can change the caret position with script (also the caret disappear as soon as I do that for some reason) and then when I insert a string at the caret position, the caret position reset to the end of the text.
    I've double checked if there wasn't a method that gets triggered that reset the caret.position but it seems there isn't (at least not in my scripts).
    Does anyone has experimented this ? And if yes what was your solution ?

    Thank you in advance,

    Cheers
     
  2. VitoCrauserg

    VitoCrauserg

    Joined:
    Jun 14, 2017
    Posts:
    12
    Were you able to find a solution? I'm facing a similar problem right now.