Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I couldn't fire the guns, but trigger works for UI. Am I missing something?

Hi that is a very strange bug, and very sorry to hear could you please tell me what VR headset you're using and the controllers? That would be a huge help thank you.

(+1)

I'm using SteamVR with Index + Knuckles

(+1)

Thanks for the information, I'll investigate this as soon as I can and comment on this post when I've uploaded a knuckles controller fix build. Thank you so much for bringing this issue to my attention I really appreciate it.

Seems like this is a universal issue with Unity OpenXR. My game also can't get index triggers to work

(1 edit) (+1)

We had a similar problem with grip triggers. Adding all the interaction profiles (even unrelated ones) in the XR management settings seemed to fix it.

You might also need to set an input binding in your input action map. Sometimes the generic XRController input bindings don't work for specific controllers.

If it still doesn't work it's no biggie, most people are using a Quest 2 anyway.

(+1)

So I think because the valve index doesn't have an input map for "Trigger Button" only "Trigger Pressed" so when you set "Generic XR Trigger button" the index controllers won't read it. So I've just added "Valve Index Trigger Pressed" to the input bindings. It's uploading now the build should be named "Welcome to the Simulation - Valve Index Fix". No rush of course to check it but please let me know if it fixes the problem, and we can also let anyone else know who may be experiencing the same problems.

(+1)

Oh that makes sense- if you use the Button action type then there's no convenient discretisation of the triggers. The action type has to be set to Value + Analog. The triggerPressed binding is for the clicky button at the end of the trigger stroke.

I tried the fix and it's playable on index now, although both guns fire when the right trigger is pressed.

(1 edit)

Oh no, whoops yeah I accidentally set that hand to be both aha should be fixed now. Thank you so much for taking the time to test this for me and I hope we can let more devs know that may have the same issue in their game :)