Interacting with the menu
The VR template has a menu system that is activated by pressing the Menu button on the motion controller. The menu system is implemented by the Menu Blueprint and the WidgetMenu Blueprint. Both Blueprints are in the Content > VRTemplate > Blueprints
folder.
The events of VRPawn that deal with the menu are InputAction MenuToggleLeft and InputAction MenuToggleRight, which are triggered by the Menu button of the motion controllers. The Menu button is used to show and hide the menu.
The next screenshot shows the InputAction MenuToggleRight event that executes the Toggle Menu function of VRPawn:
The Toggle Menu function checks whether the menu is active. In this case, it calls the Close Menu function of the Menu Blueprint. If the menu is not active, it spawns an instance of the Menu Blueprint: