• Home  / 
  • Steam VR Unity 5.4 Beta

Steam VR Unity 5.4 Beta

Unity 5.4 Beta Fixes

If you’re running Unity 5.4, you’ll run into a couple errors when you try to start.

First, you’ll need to check the Virtual Reality Supported checkbox and add the OpenVR SDK in your Player Settings

The issues that are struck out below have been resolved in SteamVR 1.09.  Instead of addressing them, just make sure you’re updated to at least 1.09

Now that you’ve done that, you’ll probably run into another error message when you try to hit Play.

If you double click the error messages, you should see these lines of code in your code editor.

SteamVR_UpdatePoses.cs
#if !(UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0)
    	camera.targetEye = TargetEyeMask.kTargetEyeMaskNone;
#endif

SteamVR_Settings.cs

#if !(UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0)
    	// Switch to native OpenVR support.
		var updated = false;

		UnityEditorInternal.VR.VREditor.InitializeVRPlayerSettingsForBuildTarget(BuildTargetGroup.Standalone);

To fix the error, simply change the 5_0 in each of them to 5_4 like this.

SteamVR_UpdatePoses.cs

#if !(UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_4)
    	camera.targetEye = TargetEyeMask.kTargetEyeMaskNone;
#endif

SteamVR_Settings.cs

#if !(UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_4)
    	// Switch to native OpenVR support.
		var updated = false;

		UnityEditorInternal.VR.VREditor.InitializeVRPlayerSettingsForBuildTarget(BuildTargetGroup.Standalone);