Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 rooskie · Apr 07, 2017 at 03:02 PM · vr

Unity 5.6 + GVR 1.3 what's the right way to setup for VR?

I've downloaded the Unity 5.6 and GVR 1.3 but I can't figure out what's the right way to go in VR mode.

I understand that 5.6 has the native VR support, so do I still need the GvrViewerMain in my scene?

If not, how do I test my game in VR mode from the editor? Because if is remove the GvrViewerMain from the scene and hit Play it't not in VR mode.

I want some scenes to be nonVR and some scenes in VR, before you could control that by placing the GvrViewerMain prefab to the scene, how to do that now?

Cheers!

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by BodhiPurplePill · Apr 07, 2017 at 03:08 PM

For native cardboard builds, you can disable and re-enable VR mode with UnityEngine.VR.VRSettings.enabled

As far as i know, GvrViewer only simulates this in the editor. For builds, you don't need to add it. Switching vr mode on and off in the editor can be done with the boolean VRModeEnabled on your GvrViewer instance.

Comment
Add comment · Show 2 · Share
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 rooskie · Apr 08, 2017 at 03:31 AM 0
Share

Hey thanks for the reply!

That would be a good approach for me but for some reason VRSettings.supportedDevices.Length returns 0 on my phone which is ASUS zenfone 2 that does support Cardboard and has gyro. I've added the Cardboard SD$$anonymous$$ to the list under 'Virtual Reality Supported' in 'Player Settings'. Any ideas why?

avatar image BodhiPurplePill rooskie · Apr 09, 2017 at 08:36 PM 0
Share

"Virtual Reality Supported" has to be enabled in player settings for the sdk's to be included in the build.

To avoid vr mode while starting up, you could try setting "none" to the top of the list. Then load cardboard at runtime with LoadDeviceByName("cardboard")

avatar image
0

Answer by fiixed · Apr 07, 2017 at 04:08 PM

Follow this tutorial...its written by a Google employee. Will get you setup with a basic Daydream scene using GVR 1.3:

http://www.sdkboy.com/2016/12/building-daydream-controller-based-app-scratch/

Comment
Add comment · Share
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
0

Answer by rooskie · Apr 10, 2017 at 12:43 PM

OK so here is where I'm at at the moment. I have Unity 5.6 and GVR for unity 1.3. I have worked out how to switch from non VR to VR modes, by doing LoadDeviceByName("cardboard") however while this works on my old SONY Xperia Z3 it doesn't work on my ASUS Zengfone 2 even though VRSettings.supportedDevices returns "cardboard". Looking through the log from adb logcat I see this error: DllNotFoundException: gvr. Seems like a Unity issue.

Comment
Add comment · Share
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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Trigger when player looks at object in Unity 5.6 VR 2 Answers

How to create real water? 5 Answers

Getting log from unity and ECG physiological markers using VB script 2 Answers

Removing unneeded shaders Shader Unsupported Hidden/VR/BlitCopyFromTexArray 0 Answers

playing audio with the GoogleVR Reticle Script 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