- Home /
Hololens and UI Canvas, interactive zone inconsistent with actual UI elements
I'm trying to create a UI in a Hololens app that allows the user to select the different fields (in my example an Input Field and three Toggles). I'm able to create and place the elements just fine, but when I click play and try to select them, the position of the UI elements does not perfectly overlap with the area that the gaze/cursor recognizes as being the interactable zone where the Highlighted functionality is activated.
I uploaded a video below. You can see how the actual UI Element and the Interactable zone clearly doesn't line up. Also, half way through the video, I emulate a select (press A on the Controller), and suddenly the interactable zone for the elements moves up on the Y axis.
I've tried a ton of stuff messing with the Rect Transforms, but nothing seems to make sense to me. I was hoping someone else has seen this kind of problem.
To add some more context, I'm using the HoloToolkit's HoloLensCamera, removed the default Input module from EventSystem and added the HoloLensInput Module (I've had this problem with and without the default Input), the Canvas is using the World Space Render Mode with the HoloLens Camera set as the Event Camera.
https://www.youtube.com/watch?v=mbxZMvUFa1A&feature=youtu.be
Answer by Dmidcap · Oct 05, 2017 at 06:44 PM
So I went ahead I tried building the app this morning (yesterday Unity was having issues building it), and on the Hololens, the gaze works as expected with UI elements. I'm going to chalk this up to the Emulator making a mistake.
Your answer
Follow this Question
Related Questions
UI and mousePosition not centered the same way ? 1 Answer
[c#] first script isnt disabling canvas and player cant move (issue with first script) 0 Answers
Help! Canvas element cannot be seen in Oculus. (Unity 5.2.3) (C#) 1 Answer
OnMouseHover on UI 1 Answer
Disable and enable canvas group by pressing an UI button. (C#) 2 Answers