Help with referencing VRTK buttons for vive
So i cant seem to make the top Vive controller button(button two) press do anything, i currently have this c# code on my gun script and im trying to drop the gun's magazine upon button two press and is saying i have a null reference to object {
public VRTK_ControllerEvents buttontwoPressed;
protected void Start(){
buttontwoPressed = VRTK_ControllerEvents.ButtonAlias.ButtonTwoPress;
}
void Update(){
if (buttontwoPressed) {
reload ();
}
}
Comment
Your answer
Follow this Question
Related Questions
Gear VR S6 shadow issue 0 Answers
How do you set up Oculus GO input for the Controller? 1 Answer
Holographic Emulation: Remote to Device doesn't work 1 Answer
Momentum and inertia 1 Answer
How can i make a prefab solid using trigger and VR 0 Answers