Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Leon-VB · Feb 11 at 01:25 PM · vrpluginsteam

SteamVR Make Game have a 3D Scene and VR Scene

I'm currently trying to switch between a VR and a 3D PC screen scene in unity. I am using SteamVR in my project and the XR Plugin Management for trying to do the switching. I tried to use the code from https://docs.unity3d.com/Packages/com.unity.xr.management@4.0/manual/EndUser.html to enable VR in my VR scene and disable VR in my PC scene.

When I start in my PC scene everything works fine, but when I switch to the VR scene I get errors that SteamVR couldn't be initalized and stuff like that...

Also when I start in the VR scene and I switch to the PC scene the camera view gets distorted and the hands from the player prefab (of steam vr) are still visible. When I change back to VR view I again get the error that SteamVR couldn't be initialized and I can't do anything in VR (and the hands stay at the same place)....

I have no idea how to fix this anymore since everything seems so weird. I also tried to disable auto enabling of steam vr and do the enabling manually in the code from the xr management link above but that doesnt work either...

Why can't it be simpler to change between VR and PC....

Anyways thanks for any help on this. How could you easily achieve the switching between vr and pc?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rh_galaxy · Feb 11 at 02:15 PM 0
Share

Can't you have just one scene where you enable or disable VR? It sounds like you have two different scenes that you also change between, because you only have one scene Loaded at once?


I use SteamVR in a project from unity 2019.2.10f1, and that works differently so I haven't made the switch yet to XR Plugin (only on Rift and Quest). Also I never switch between PC and VR, only detect noVR at startup, so I'm afraid my project won't help you.

avatar image Leon-VB · Feb 11 at 02:52 PM 0
Share

Yeah I have one scene where VR is enabled and one scene where it's disabled. I just dont get SteamVR to start manually... It always gives the following error (even thought my hmd is working and OpenVR Loader is working)... [1]: /storage/temp/192478-screenshot-2022-02-11-155002.png

And Yes maybe it would be an oppurtunity to do everything in the same scene. How would you achieve turning VR on/off?

screenshot-2022-02-11-155002.png (28.2 kB)
avatar image rh_galaxy Leon-VB · Feb 11 at 03:10 PM 0
Share

Sorry, I only detect if VR fails at start I do PC. But it could be possible to enable/disable the right components/plugins...

avatar image Leon-VB rh_galaxy · Feb 11 at 03:51 PM 0
Share

I tried enabling, disabling of different things for 2 days now... I'm getting so frustrated... Nobody can help...

avatar image bistdeppat Leon-VB · Feb 12 at 04:58 PM 0
Share

I am facing exactly the same issue right now. I set up a simple scene and was trying out that teleportation thing. Somehow Unity crashed when exiting playmode. Since then this error comes up everytime I want to enter the playmode. SteamVR is running and is connected to my Quest properly. As my project just was a basic setting, I created a new project and now it works again, but I think it will only be a matter of time that this error comes up again.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

185 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[Solved] SteamVR - Replacing the Vive controller texture/model IN Unity? 1 Answer

Camera and objects in steamVR plugin 0 Answers

SteamVR: Eye camera does not seem to support depth only; 3D skybox implementation impossible 1 Answer

First Person Player controller for Steam VR 1 Answer

Editor Crashes When Switching from VR to Standalone 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges