ViveSoftware / ViveInputUtility-Unity

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

SteamVR 2.4.5 actions dont work with VIU #156

Closed dpggit closed 4 years ago

dpggit commented 4 years ago

I have installed SteamVR 2.4.5 and now VIU dont trigger anything in the UI. With SteanVR 2.0.1 i could interact with the different IU elements but now i cant even trigger a button

dpggit commented 4 years ago

I see if (!RectTransformUtility.RectangleContainsScreenPoint(graphic.rectTransform, screenCenterPoint, eventCamera)) { continue; } is always false in Raycast method in CanvasRaycastMethod script

lihaiyang-xx commented 4 years ago

I have the same problem when upgrate to steamvr 2.4.5

chengnay commented 4 years ago

@dpggit @lihaiyang-xx On VIU's example scene, does it works? Upgrading from SteamVR Plugin 2.0.1 to 2.4.5, did you follow Steam's suggestion?

Upgrading from older versions Upgrading from anything from 2.1 - 2.3 The location of actions.json and associated bindings has changed. They will get automatically moved from project root to StreamingAssets/SteamVR/

Upgrading from version 2.0 You will need to delete your SteamVR/SteamVR_Input folders, Save and Generate, and then re-set your actions that you've assigned in the editor. You do not need to recreate your actions file or bindings files. This was necessary to support Unity's new serialization in 2018/2019. If you've made changes to your SteamVR/Resources/SteamVR_Settings.asset file, remember to keep it.

dpggit commented 4 years ago

Yes, Steamvr 2.4.5 the first time didnt create the SreamingAssets folder , when i tried again and it created the StreamingAssets folder but didnt work actions. I found a solution in the end, detele absolutely everything related to steamvr and viu, create a new empty project import steamvr and viu and then copy everything to my project and now viu works with steamvr 2.4.5 except the getstatedown and up states. I think also Steamvr have problems when modify the default actions.

chengnay commented 4 years ago

@dpggit For GetStateDown and GetStateUp states, please wait for VIU next release to fix this part. I found possible root cause that is causing those two functions not working.

chengnay commented 4 years ago

@dpggit Please update your VIU from GitHub, it fixes the GetStateUp and GetStateDown not working issue.

qlee01 commented 4 years ago

Same issue here, cannot make it work with an already existing project. Tried deleting everything, reinstall SteamVR and HTC.UnityPlugin, but the actions don't work in UGUI demo. UI elements are highlighted, but click events are not registered. In another project it seems to work, both on SteamVR 2.4.5.

EDIT: after resetting my bindings, which I only managed to do my renaming my app key in SteamVR Settings (in SteamVRResources/Resources) , it works now...

chengnay commented 4 years ago

@qlee01 Great to hear that, cheers!