VR issues after updating Tabletop Simulator to Unity 5.6.2

Hey guys I’m running into a strange issue after upgrading from Unity 5.3.8 to 5.6.2 with SteamVR. I also updated from my outdated SteamVR plugin to the latest.

Everything works fine if I keep the Virtual Reality SDKs in PlayerSettings without ‘None’ as the first option. The problem comes up because I want to manually enable VR by using ‘None’ to stop it from automatically initializing and then enabling VR at runtime. I need to do this because TTS is both a VR and Non-VR game and I need to make changes at runtime to setup everything correctly.

After calling this code to enable VR at runtime:

VRSettings.LoadDeviceByName(“OpenVR”);
yield return null; //have to wait a frame for VR to init
VRSettings.enabled = true;

I get spammed in console with:

Assertion failed on expression: 'IsMatrixValid(matrix)

Also the camera rotation seems to be double what is should be (ex, turning 90 degrees right ends up being 180).

I can reproduce this issue in a clean project with just the default SteamVR camera rig.

Has anyone ran into this issue and/or have any ideas? Thanks for any help!

Thanks for help from ivanAtBest: Reddit - Dive into anything

Basically I needed to make sure that the SteamVR rig wasn’t in enabled until VR was enabled.

Can you explain more about your solution? I’ve done several VR projects and never ran into this issue until today.