Search Unity

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:
    223