Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Unity Input Field Caret Position always sticking at the end

Discussion in 'VR' started by krreddy, Jun 8, 2017.

  1. krreddy

    krreddy

    Joined:
    May 10, 2017
    Posts:
    3
    Hi all,

    For my application I have created a Virtual 3d keyboard. So whenever an Input text field is focussed and tapped, it activates my keyboard. Key press of the keyboard is detected using InputClicked() function present in IInputClickHandler Interface of HoloToolkit. Every key press of the keyboard sends a keyboardEvent and I call ProcessEvent() and UpdateLabel() in my input field.

    The application works as expected in the unity editor, but when built in Hololens I am not able to change the caret position of the input field. It always snaps to the end of the text in the input field. Any help with this would be great.


    Thanks and Regards

    Roopesh
     
  2. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228