cancel
Showing results for 
Search instead for 
Did you mean: 

xBox Controller in Unity

MeioJo
Expert Protege
I am coming from this from an artist view so my scripting is simplistic.

How do I get the xbox controllers' buttons to cause events in Unity

ie. I'd like "A' to pull up a menu (show canvas) and "B" to put the menu away (hide canvas).


2 REPLIES 2

vrdaveb
Oculus Staff
Please see https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrinput. You can use OVRInput.GetDown(OVRInput.RawButton.A/B).

MeioJo
Expert Protege
The writer of that help file you linked needs to be held out as above the rest.

'Example usage' like what that person wrote should be mandatory and is for me (an old Basic programmer) a breath of fresh air.