In Unity 5.5.1 and prior, to determine ‘center of screen’ with Unity’s VR mode enabled, we would check the eyeTextureWidth and height, something like this:
centerOfScreen = new Vector2(VRSettings.eyeTextureWidth / 2, VRSettings.eyeTextureHeight / 2);
This quit working in Unity 5.5.2, and now even with VR mode enabled I must obtain 'center of screen via Screen.width and Screen.height.
centerOfScreen = new Vector2(Screen.width / 2, Screen.height / 2);
What changed in 5.5.2?
I look through the release notes and found this:
Virtual Reality: Updated to Oculus runtime version 1.11.
Virtual Reality: Fixed inconsistency in game view between Singlepass Stereo and Multi Pass when using Split Stereo Diplay. - (814290)
Virtual Reality: Fixed incorrect culling in Split Stereo Display. - (830612)
Virtual Reality: Fixed incorrect eye view in Split Stereo Display. - (832185)
Virtual Reality: Fixed incorrect viewport bounds in Singlepass Stereo. - (832283)
I think it’s related to one of these?