-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose VRIOBuffer to Unity Plugin #290
Comments
Can you try upgrading to the latest version of the plugin and trying this again? I believe this has been fixed. |
VRIOBuffer functionality seems to work as intended across the FFI with latest version of OpenVR with one exception. There is a minor typo in the new version of openvr_api.cs causing an error. I have submitted a pull request addressing it: ValveSoftware/openvr#1034 Thanks. |
Closing per the last comment. |
hello,how to use c# to read IMU data? |
I am trying to access the VRIOBuffer to read IMU data using the functionality added in OpenVR release v1.0.15. I am able to implement this behavior correctly in C++ by following the example as laid out in the openVR wiki documentation. I am failing to access the same data in Unity.
There are definitions for the ImuSample_t struct and a wrapper class for VRIOBuffer itself, so it seems like this is intended to be exposed, but not completed.
There is no public accessor for VRIOBuffer under COpenVRContext in the current public iteration of OpenVR_api.cs and adding an accessor fails on the GetGenericInterface call. The GetGenericInterface call itself returns null if you follow the pattern of using the FnTable prefix + Module Version String (example). If you try to access the interface without the FnTable prefix, using the exact same parameters as the C++ examples, you fail on invoking any function on the CVRIOBuffer object you are returned.
Access to this data in C#/Unity would be immensely helpful.
The text was updated successfully, but these errors were encountered: