ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Basic Grabbale doesn't properly support SteamVR 2.0 action names #97

Closed wirelessdreamer closed 5 years ago

wirelessdreamer commented 5 years ago

In a new test project I imported SteamVR 2.0 and VIU. I imported the VIU action set, and built the required lib's for it. I added a basic grabable script to an object, and clicked on the grab button drop down, but it doesn't show the list of actions that should be there, it only shows the old button names like pre SteamVR 2.0 would of shown. viu_press_xx options should all be there for proper SteamVR 2.0 support.

wirelessdreamer commented 5 years ago

To further clarify there should be an action set, and and action that can be bound to the grabbable script

wirelessdreamer commented 5 years ago

I found the steamvr 20 branch, and am pulling it now.

wirelessdreamer commented 5 years ago

same issue looks like it exists there.

wirelessdreamer commented 5 years ago

After playing with the code for a while I see that the steamvr actions shouldn't match up on the scripts, as it would break the multiplatform support. There is still a limitation in that the only actions that can be bound in the grab script are ones that match up to the actions we bind with the internal limited set of names. I guess if that matters to users we'll just need to make our own to handle grab for that platform seperately.