Download

Issue with clicking buttons on a menu widget in VR

I’m creating a menu in VR that you’re meant to be able to select from by pointing and pulling the trigger button. For some reason however, whatever I set to happen after the “On Clicked”-event of the button doesn’t actually happen.

However, I’m fairly sure the actual clicking is working because I get an animation on the button when I click it that seems to be built into the widget. It like goes a slightly darker grey and looks like it’s pushed down slightly. Another weird thing is that after I’ve pressed either menu button down (there are currently only two) I can no longer select the other one.
I’m using the VR template and here are the changes I’ve made to the MotionControllerPawn and the BP_MotionController.

Any ideas on what might be causing this?

I’m using 4.20.1 but just tried it on 4.18.3 and it doesn’t work there either.

I found the answer, but I’ll leave this up in case anyone else has the same issue.

I followed a different tutorial, this one, in which he mentions that you also need a “Release Pointer Key” node.

我在4.18.3上有同样的问题。我看那个教程,但按钮仍然无法正常工作。
这些都是我所做的。你可以帮我吗?