Unity Input Field Caret Position always sticking at the end

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

Hi Roopesh - sorry for the delayed response.

We don’t directly support the HoloToolkit here - for that, I’m afraid I need to direct you to their GitHub page: GitHub - microsoft/MixedRealityToolkit-Unity: This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity