Forum Discussion
Podden
11 years agoProtege
Detecting Headset Type
I did not found any function or variable to handle DK1 or DK2 different. Am I missing something? I want to scale my GUI a little smaller for DK2 because it's much better readable in it and does not have to be so big.
Edit: just helped myself!
I put this inside the OVRDevice.cs, unter the IsSensorPresent()-function.
Than you can call it in your scripts (do not forget "using OVR;" so that it recognises the ovrHmdType enumeration.
Edit: just helped myself!
I put this inside the OVRDevice.cs, unter the IsSensorPresent()-function.
public static OVR.ovrHmdType GetHmdType()
{
if (HMD == null || !SupportedPlatform)
return OVR.ovrHmdType.ovrHmd_None;
ovrHmdDesc desc = HMD.GetDesc();
return desc.Type;
}
Than you can call it in your scripts (do not forget "using OVR;" so that it recognises the ovrHmdType enumeration.
Replies have been turned off for this discussion
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
- 1 year agoAnonymous
- 2 years ago
- 10 months ago