Forum Discussion
JamieSinn
12 years agoHonored Guest
Oculus Detection?
Is there a way in the Unity SDK to detect if there is an oculus attached? I want to make it optional for use of the oculus, and I haven't seen a way to detect if it is connected so far. Thanks :D
boone188
12 years agoHonored Guest
You can use the OVRMessenger, like it is done in the OVRMainMenu:
So you add a callback function that will get called when a device is either attached or detached.
OVRMessenger.AddListener<Device, bool>("Sensor_Attached", UpdateDeviceDetectionMsgCallback);So you add a callback function that will get called when a device is either attached or detached.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 years ago
- 2 years ago
- 1 year agoAnonymous