-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable AutoEnableVR #961
Comments
Update: However, this still does not stop SteamVR from auto launching before that code is even called. |
I may have found part of the problem in the Player log You can see it initializes the subsystems, and then calls XRGeneralSettings.Awake first before anything else. AFTER that, then you can see where I tried to stop it from happening with "SE_InitializeUnityScene:InitializeVR(SequencedEvent)"
Still, SteamVR should not launch automatically if autoEnableVR is false, but here we can see Unity is basically forcing VR to enable if you have any of its subsystems in your application at all. Hopefully someone smarter than me knows what to do next, because that's all I got |
The auto enable vr checkbox is for enabling the steamvr subsystem in unity settings, not for launching it at runtime. Launching it at runtime is controlled by unity. |
Ok, but both are disabled, and it's still running. |
Hello @Mouledoux -- I just happened upon this issue while looking for something completely else. I agree with your assertion that SteamVR shouldn't launch if auto enable vr is false, and ran into the same problem myself. I discussed it on the Unity XR Plugin page, here: ValveSoftware/unity-xr-plugin#80 @Verex found a solution that makes the OpenVR plugin obey the 'Initialize on Startup' option, and submitted it as a pull request here: ValveSoftware/unity-xr-plugin#102 It hasn't been merged, or even acknowledged, but if you download their fork it works just like it says on the tin. |
This could also be connected to the problem I fixed with PR #974 (isn't merged yet) |
Unity 2020.3.5
OpenVR XR Plugin 1.0.1
SteamVR launches regardless of SteamVR_Setting.autoEnableVR being true or false
UnityEngine.XR.XRSetting.enabled is also false at build time for all build devices.
Every single camera (except the disabled VR Player's camera) has TargetEye set to none.
XR.Enabled and autoEnableVR do get reset at runtime based on user settings,
but they are both false by default, and SteamVR launches before the scene with that script even loads.
The text was updated successfully, but these errors were encountered: