Get PointerIndex for UMG button click

Using BluePrint, I’m trying to figure out which VR motion controller clicked on a UMG Widget button.

The player is facing a wall with a grid of buttons, each corresponding to a sword. The player can aim at the wall with either/both hands and click to equip the selected sword to the hand that clicked the button.

  • The wall is set up as an Actor with a Widget component.
  • The hands are actors that have WidgetInteraction components attached to MotionController components.
  • OnBeginPlay, the WidgetInteractions calculate their PointerIndex based on the handedness of the MotionController component
  • I thought I might be able to use the GetPointerIndex node, but I’m unsure what event I would feed into it.

Thanks in advance!