Hello, I want to make sure that when you click on a button with the right mouse button in the widget, some action occurs, tell me how to do this please

Hello, I want to make sure that when you click on a button with the right mouse button in the widget, some action occurs, tell me how to do this please

Google “unreal blueprint communication”. Follow some tutorials.
then:

  • create button in UMG ui. Make event for when it is pressed
  • get reference to actor that does your action
  • create next event in that actor
  • from widget call that event inside actor when button is pressed (button press action triggered)

thanks