When I develop an application for windows using unity the Gaze is always offset to the top left corner.
I tried setting my DPI to 125% / 100% instead of 100%, but nothing changes.
Same for discovering the focused object via “GetFocusedObject()”, it doesn’t yield any reasonable results.
I don’t use any UI elements.
I have recalibrated the device and it works otherwise.
It suddenly works after building the application, but I can’t build every time I make a change.
The same is true for the example project with the spinning cube. It only works after building, never inside unity.
I’m using a windows 10 laptop with the newest unity and eyex software.
Since it works in standalone but not in the Unity Editor it does very much sound like a DPI issue. Windows 10 automatically sets a high DPI on high resolution screens so it is a bit tricky to change the correct DPI setting to override this behavior.
First, try changing the compatibility setting for the Unity Editor:
– Locate the Unity.exe file in a file explorer (probably located in something like C:\Program Files\Unity\Editor\)
– Right click the exe and open Properties
– Go to the Compatibility tab
– In the Settings section, check the “Disable display scaling on high DPI settings”