Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
pomfish's avatar
pomfish
Honored Guest
8 years ago

detect pressing Oculus Home button

Hi.



We use Unity to develop
games. We want to know how to detect pressing Oculus Home button events to
trigger a game pause.



We tried some
interfaces in SDK, but it didn't work.


Unity v5.5.0f3, Oculus Utilities v1.13.0, OVRPlugin v1.10.0, SDK v1.16.0.

UnityEngine.Debug:Log(Object)

OVRManager:Awake() (at Assets/OVR/Scripts/OVRManager.cs:535)

Operating system is Windows 10

2 Replies

Replies have been turned off for this discussion
  • owenwp's avatar
    owenwp
    Expert Protege
    Pausing should happen automatically unless you have run in background checked in the project settings.  You can also query OVRManager.hasVrFocus
  • pomfish's avatar
    pomfish
    Honored Guest
    @owenwp
    Thank you for your reply. This method is very effective.  :)