ViveInputUtility-Unity
ViveInputUtility-Unity copied to clipboard
VIU UI interaction not working
After having set up SteamVR 2.2.0 and VIU 1.10.4, trying the 0.Tutorial scene I get flooded with these kind of errors :
GetActionOrigins failed! action=/actions/htc_viu/in/viu_axis_3xy error=InvalidHandle
It's not only viu_axis but press, etc.
I tried to downgrade SteamVR to 1.2.3 (deprecated) and UI elements get highlighted when hovering the 3D pointer but the click doesn't seem to be handled. Have I missed something ?
Could you try the method in below link? https://community.viveport.com/t5/Vive-Input-Utility/GetActionOrigins-error/m-p/31268#M54 There seems to be a bug that Recommeded Settings does not auto popup.
Thanks @chengnay, there's no error anymore but clicking still doesn't work 😢
@Knive Are you using SteamVR 2.2.0 and VIU 1.10.4? After you pressed trigger, you don't see effect on the button in 0.Tutorial scene?
Yes SteamVR 2.2.0 (also tested 2.0) and VIU 1.10.4 I can see a highlight effect on the button when pointer is hovering it, but pressing the trigger does not seem to have any effects 😞
@Knive Could you try other scene(3.3DDrag or 5.ColliderEvent)?
Still the same, objects get hightlighted but press is not handled
What device you are using? VIVE or VIVE Pro?
A Vive
Could you share your project to me?
Here you can download it : https://we.tl/t-toHrLOYAln
Your project works perfectly fine. Can you restart your SteamVR and try again?
One way you can check whether your controller's input is working or not, you can do the following steps,
- Play your project
- Click on [ViveInputUtility] under DontDestroyOnLoad
- Click on the top right corner and select Debug
- Go under Curr States and look for your controller
- Press any button and check Button Pressed field, non-zero value means button is being pressed
Another method to check,
- Press System button and see if your trigger button works by clicking items on Dashboard
@Knive Do you have any update?
i got the same issus,i try the debug method ,but the number of "Button Pressed" is still 0,my unity version is 2018.3.14f1 and 2018.2.21f
@ZhouMax95 Are you also using SteamVR Plugin? Could you try other sample scene(SteamVR or VIU) if it works fine?
is work fine in SteamVR sample scene,but in VIU sample scene it doesn't work. before i import SteamVR Plugin,it's work fine,when i import SteamVR Plugin,It's just dont work,not error
@ZhouMax95 When you import SteamVR Plugin 2.0 and above, you need to apply VIU action sets. https://github.com/ViveSoftware/ViveInputUtility-Unity/wiki/SteamVR-Input-System-Compatibility Double check the SteamVR Input window whether you can see htc_viu tab.
i have done this before ,but dont work,but,i try that again just a few minute ago in unity 2019.2.4f1,and it work,it's just dont work in unity 2018
@ZhouMax95 Could you share that Unity 2018 project to me for investigation? And, could you also try updating VIU to the latest one from GitHub and try again?
That's the project :[email protected]:ZhouMax95/TestVR.git
it's work fine in 2018.4 LTS version
it's work fine in 2018.4 LTS version
Which version fail in Unity 2018?
2018.3.14f1 and 2018.2.21f are fail 2018.4 LTS is ok
i updating VIU to the latest one from GitHub and try again in 2018.2.21f, it work!