Forum Discussion
mostertag
12 years agoHonored Guest
Unity - Oculus DK2 Detection
Hello everyone,
I am working with Unity 4.3.2f1 and the Oculus 0.4.3 lib. After building my standalone project I have two .exe (Normal and DirectToRift).
I would like to know if it's possible to know which version was launched ? How can I detect that ?
Thank you !
I am working with Unity 4.3.2f1 and the Oculus 0.4.3 lib. After building my standalone project I have two .exe (Normal and DirectToRift).
I would like to know if it's possible to know which version was launched ? How can I detect that ?
Thank you !
6 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionCan I ask what purpose you need to detect the "DirectToRift" option?
- korinVRExpert ProtegeTo check if Oculus Rift is connected, probably you can use OVRManager.display.isPresent.
- vrdavebOculus StaffAre you looking for OVRManager.display.isDirectMode? If you really need to know which executable was run you could use Environment.GetCommandLineArgs()[0].
- mostertagHonored GuestThank you everyone, OVRManager.display.isPresent is what I am looking for.
Unfortunately, it seems that there's no OVRManager.display.isDirectMode... - mostertagHonored GuestIs it possible to detect if the Direct Mode is active ?
- cyberealityGrand ChampionI can see that there is a public property:
OVRManager.display.isDirectMode
Maybe you don't have the latest SDK?
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
- 10 years ago
- 5 years agoAnonymous
- 3 years ago