Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Tenry92 · Feb 23 at 09:41 PM · inputvr

Get HTC Vive (VR) and new input system working

I am trying to get my HTC Vive running with Unity 2021.2.11f1. The position tracking of my headset and controllers generally work, but I have trouble getting the controllers inputs (button presses, touchpad). Somehow I got it working twice on separate days, but with no obvious reason it is again no longer working and I'm unable to get it working again.

Installed packages:

  • Input System 1.3.0

  • OpenXR Plugin 1.3.1

  • XR Legacy Input Helpers 2.1.8

  • XR Plugin Management 4.2.1

  • OpenVR XR Plugin 1.1.4

I want to use Unity's new input system. In Project Settings -> Player "Active Input Handling" is set to "Input System Package (New)".

I have written a controller script that have InputAction properties I fill out in the Unity editor. I have set keyboard keys to these actions as well as XR input. Keyboard keys are always working, XR input not.

For example, the previous day I had set XR Controller > XR Controller (RightHand) > Optional Controls > touchpad ( <XRController>{RightHand}/touchpad ) set and eventually it was working the previous two days (after switching between VR sample scenes and my scene, restarting SteamVR, restarting Unity...).

I also tried using the InputAction from the OpenXR's sample (OpenXR Plugin/1.3.1/Controller/ControllerSampleActions.inputactions), but no luck here either.

As for the XR Plugin-Management in the project settings, I can choose the plugins Oculus, OpenVR Loader, OpenXR and Unity Mock HMD. The only ones that should be interesting for me is OpenVR Loader and OpenXR. I tried many combinations.

  • Initialize XR on Startup is checked (otherwise VR wouldn't start at all)

  • If OpenVR Loader is checked, it is used (even if OpenXR is also checked)

  • If only OpenXR is checked, OpenXR is used

In the OpenXR settings I can add interaction profiles. I added HTC Vive Controller Profile there.

I have attached the Tracked Post Driver to my camera and dummy models for the hands.

  • the head's position and rotation is perfectly tracked with OpenVR Loader and OpenXR

  • the controller's position and rotation is only tracked with OpenVR Loader

I don't receive controller inputs in any case, but it was working yesterday and I did not do any changes regarding the XR packages, settings etc. The controllers are correctly connected to the computer, since everything is working in SteamVR Home and the menu button always opens the system menu, even ingame.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Tenry92 · Feb 26 at 04:48 PM

It seems like the HTC Vive controllers (at least those I have) are not compatible with OpenXR in Unity. Instead I can use the SteamVR Unity Plugin (which provides OpenVR Loader in the settings) and enable OpenVR Loader in the settings.

As for the input, I shall use SteamVR's input system which perfectly works. Also the SteamVR's components for position tracking etc. should be used in my specific case.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

251 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Disable rotation on swipe (Gear VR) 1 Answer

Map VR box controller(VR remote) in unity 2 Answers

Spawn object in hand and bind it to hand transform? 2 Answers

What is the vr head input for google vr sdk v1.130 0 Answers

FPS Controller loosing input - unable to move and or look around 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges