Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

What's different between 5.5.1 and 5.5.2 for VR Enabled?

$
0
0
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...

What's different between 5.5.1 and 5.5.2 for VR Enabled?

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>