19 return EditorPrefs.GetBool(
"SteamVR_AutoEnableVR",
true);
23 EditorPrefs.SetBool(
"SteamVR_AutoEnableVR", value);
27 [PreferenceItem(
"SteamVR")]
28 static void PreferencesGUI()
30 EditorGUILayout.BeginVertical();
31 EditorGUILayout.Space();
35 string title =
"Automatically Enable VR";
36 string tooltip =
"Should SteamVR automatically enable VR on launch and play?";
38 string helpMessage =
"To enable VR manually:\n";
39 helpMessage +=
"- go to Edit -> Project Settings -> Player,\n";
40 helpMessage +=
"- tick 'Virtual Reality Supported',\n";
41 helpMessage +=
"- make sure OpenVR is in the 'Virtual Reality SDKs' list.";
42 EditorGUILayout.HelpBox(helpMessage, MessageType.Info);
45 EditorGUILayout.EndVertical();
static bool AutoEnableVR
Should SteamVR automatically enable VR when opening Unity or pressing play.