ViveSoftware / ViveInputUtility-Unity

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

VIU UI interaction not working #129

Open Knive opened 5 years ago

Knive commented 5 years ago

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 ?

chengnay commented 5 years ago

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.

Knive commented 5 years ago

Thanks @chengnay, there's no error anymore but clicking still doesn't work 😢

chengnay commented 5 years ago

@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?

Knive commented 5 years ago

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 😞

chengnay commented 5 years ago

@Knive Could you try other scene(3.3DDrag or 5.ColliderEvent)?

Knive commented 5 years ago

Still the same, objects get hightlighted but press is not handled

chengnay commented 5 years ago

What device you are using? VIVE or VIVE Pro?

Knive commented 5 years ago

A Vive

chengnay commented 5 years ago

Could you share your project to me?

Knive commented 5 years ago

Here you can download it : https://we.tl/t-toHrLOYAln

chengnay commented 5 years ago

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,

  1. Play your project
  2. Click on [ViveInputUtility] under DontDestroyOnLoad image
  3. Click on the top right corner and select Debug image
  4. Go under Curr States and look for your controller
  5. Press any button and check Button Pressed field, non-zero value means button is being pressed image image

Another method to check,

  1. Press System button and see if your trigger button works by clicking items on Dashboard
chengnay commented 5 years ago

@Knive Do you have any update?

ZhouMax95 commented 4 years ago

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

chengnay commented 4 years ago

@ZhouMax95 Are you also using SteamVR Plugin? Could you try other sample scene(SteamVR or VIU) if it works fine?

ZhouMax95 commented 4 years ago

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

chengnay commented 4 years ago

@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.

ZhouMax95 commented 4 years ago

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

chengnay commented 4 years ago

@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?

ZhouMax95 commented 4 years ago

That's the project :git@github.com:ZhouMax95/TestVR.git

ZhouMax95 commented 4 years ago

it's work fine in 2018.4 LTS version

chengnay commented 4 years ago

it's work fine in 2018.4 LTS version

Which version fail in Unity 2018?

ZhouMax95 commented 4 years ago

2018.3.14f1 and 2018.2.21f are fail 2018.4 LTS is ok

ZhouMax95 commented 4 years ago

i updating VIU to the latest one from GitHub and try again in 2018.2.21f, it work!