Forum Discussion
djw
12 years agoHonored Guest
Oculus + Unity + Kinect
Hello,
(I posted this in the general forum and was directed here - so apologies if you've already read this post)
I have been trying to run a script that incorporates the Kinect (for x,y,z head position) into the Oculus PlayerController.
When I try and run it I get the following errors:
Assets/OVR/Scripts/OVRPlayerController.cs(266,30): error CS0117: `OVRDevice' does not contain a definition for `SensorCount'
Assets/OVR/Scripts/OVRPlayerController.cs(269,35): error CS0117: `OVRDevice' does not contain a definition for `GetPredictedOrientation'
The script I am running was originally written for ovr_unity_0.2.5c
I am using 0.3.2
Has certain syntax become deprecated?
I would welcome any suggestions. I am a bit of a beginner with all of this.
Thanks.
(I posted this in the general forum and was directed here - so apologies if you've already read this post)
I have been trying to run a script that incorporates the Kinect (for x,y,z head position) into the Oculus PlayerController.
When I try and run it I get the following errors:
Assets/OVR/Scripts/OVRPlayerController.cs(266,30): error CS0117: `OVRDevice' does not contain a definition for `SensorCount'
Assets/OVR/Scripts/OVRPlayerController.cs(269,35): error CS0117: `OVRDevice' does not contain a definition for `GetPredictedOrientation'
The script I am running was originally written for ovr_unity_0.2.5c
I am using 0.3.2
Has certain syntax become deprecated?
I would welcome any suggestions. I am a bit of a beginner with all of this.
Thanks.
1 Reply
Replies have been turned off for this discussion
- vrdavebOculus StaffYes, the OVRDevice API changed from 0.2 to 0.3. Now you call GetCameraPositionOrientation(..) with the optional atTime argument to get poses that amount of time from the future. Only one sensor is supported now and you can check for it with IsSensorPresent().
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
- 2 years ago
- 17 days ago
- 10 months ago