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 /
  • Help Room /
avatar image
0
Question by Mammoth_VR · Apr 14, 2017 at 12:04 AM · vrscene-loadingoculusaction

GearVR HMD Head Mounted detection stops working after a level reload

We are making a video playing application for the GearVR that relies on pausing the video if the headset is removed and playing when the headset is put back on. To make resetting the state of the video player easier, we are reloading the scene when the video finishes or when the user presses the back button.

However, the head mounting detection only works when the application is first loaded, and upon reloading the level the head mounting detection stops working. We've narrowed it down to either the Oculus plugin, or how Unity handles action mapping. We were just wondering if anyone else is having this issue or if anyone has a fix for it.

We are using Unity 5.6 and Oculus Utilities 1.13 and plugin 1.12 and have encountered the same issue on Oculus Utilities 1.12. We are unable to downgrade to Unity 5.5 because of our reliance on specific functions of the new native video player.

Thanks!

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 Codest19 · Apr 18, 2017 at 05:35 AM

Hello @Mammoth_VR,

I also have this issue. Can't detect player unmounting gear. I have it trying in the second scene in my game. Using Unity 5.6 and ovr 1.13. I've also noticed it doesn't call OnApplicationPause or OnApplicationQuit when taking off the gear and pulling out the phone. I need to save my game at that point obviously. Have you found a solution in the past few days?

Comment
Add comment · Show 1 · 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 Mammoth_VR · Apr 27, 2017 at 08:29 PM 0
Share

Sorry for the late response. We found a workaround by creating a separate object that does not get unloaded (Using DontDestroyOnLoad) and having that manage anything that uses H$$anonymous$$D detection, it might work for your OnApplicationQuit as well. Only issues we've found is that we have to set all the variables back up when the level does load, which we did by using tags. I'm not sure what kind of game you're making, so our method might be inefficient. Sorry if this doesn't help.

avatar image
0

Answer by BodhiPurplePill · Apr 20, 2017 at 12:31 AM

Try OVRManager's booleans "isUserPresent" or "hasVRFocus"

https://developer3.oculus.com/doc/1.3.0-unity/class_o_v_r_manager.html#a5e16257dc5068ef2fb2a1c383977025d

https://developer3.oculus.com/doc/1.3.0-unity/class_o_v_r_manager.html#aac78feb72db01b8dd22436a4b20ace62

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 zainnn · Nov 13, 2017 at 04:41 AM

Hello @Mammoth_VR, I was having a similar problem where I was loading/restarting scenes upon OVRManager.HMDUnmounted , i was able to load the scene from another scene but was unable to reload the same level upon this event. I tried using "IsHmdPresent" and "HasVRFocus" in Update but they never worked. I finally got it working with "OVRManager.HMDUnmounted" event listener and i sorted out the problem was in Update function of my script. It was a simple transform script i was using in my Update but it seemed to override OVRManager.HMDUnmounted, so i replaced the script with an animation and it works like a charm now. I know it's a bit late to post but hope it can help you or anyone with similar issue.

Unity Version: 2017.3.0b6 Oculus Utilities : 1.19 Cheers

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

121 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

Related Questions

Unity 5.2 VR Camera Problem 0 Answers

Build error for gear vr app involving manifest in mac os 1 Answer

Open Source Tilt Brush black and white screen on oculus quest 0 Answers

My detail meshes turns black when they don't have a geometry behind (Oculus VR) 0 Answers

Multiple Scenes for iOS 2 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