• 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 Arkade · Sep 29, 2016 at 11:59 AM · vrgooglemagnet

Google Cardboard Magnet Switch with Daydream Unity technical preview

TL;DR How can one build a binary for Google Cardboard, taking advantage of the "asynchronous reprojection and VR performance mode" but still have magnetic switch/button support? (and ideally also Daydream support -- but I believe Unity and Google are working on this part.)

I've just been trying the Daydream technical preview but am disappointed to find Cardboard support seems degraded. The SDK no longer supports the magnetic switch/button after rev. 0.9.0 (see "GVR SDK Release Notes" under v0.9.0 searching for "magnet"):

GvrView no longer supports magnet trigger detection or NFC-based pairing for v1 Cardboard viewers.

I used git to switch back to 0.8.5 (git hash 0970cdf44026031992022728375cd4bd1387d4f6). When I tried building I got lots of problems so I started a blank project and reimported, followed all the steps. However this gives error "Unable to convert classes into dex format" caused by "com.google.common.logging.nano.Vr" and its inner classes. I guess they're hidden in there somewhere but I haven't found them yet. Even if I do, I'm now using 0.8.5 library which likely won't integrate fully. I was only able to work-around these by disabling the Technical Preview's VR support (from Player Settings Menu). Obviously without that, I assume you totally lose the VR-integrated benefits ("asynchronous reprojection and VR performance mode").

If I want to resolve this, I'd imagine I'll need to find the magnet switch code in 0.8.5 (C/Java/C#), find its absence in 1.0.0 version and restore it. It's likely viable but work everyone with this need will need to redo. Will Google accept a Pull Request reintroducing this? I fear if they were to, they'd likely have kept it anyawy! Where/Who to pester to get it fixed? Or is it perfectly possible and I'm missing something obvious? (crosses fingers)

So in conclusion, I can use nice speedy Daydream Technical Preview but no Magnetic button -- a total killer if you want that extra control for the millions of Cardboards out there as customers. Or I can go back to pre-Daydream non-VR-accelerated version.

All thoughts appreciated. TIA!

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

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

69 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

Related Questions

Google Daydream Instant Preview is not working with Unity Editor. 0 Answers

How to switch between two prefabs Cardboard cameras? 0 Answers

toggle Vr off and on for all scenes with Google Cardboard? 1 Answer

Google Daydream Disable VR mode 1 Answer

I need to disable Vr mode in-game, but still use the Daydream Controller. How do I do that? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges