UMG Inventory Tutorial System - Right Mouse Button

Hey guys,

I completed the UMG Inventory tutorial and everything works fine but I´d like to change the mouse event from Left Click to Right Click and this seems more complicated that I first thought.
Since there is no real OnActorRightClick event I tried to catch the OnOver mouse Event, set a boolean to true and did the same with my own defined RightButton event. Both get fired, that works. Then I did a simple on event tick with a branch to detect if over object was true and right mouse button was true.
This works, but I´ve got a problem, when I duplicate the blueprint. My RightButton event will not fire on the second blueprint. I can uncheck the “consume input” for this event and all RightButton events in every blueprint get fired.

Is this method okay, or will I run into performance problems? How does the OnActorLeftClick work exactly, is the consume input deactivated by default with this event?

Are there other way of detecting the right mouse button? Perhaps with a C++ method?

Glad for any helpful input,
best regards,
Oli

Have you gone to edit > project setting > inputs and set the right mouse to be an action?

Yes, my RightButton is an input action. But there is no ClickedOnActor event for the right mouse button out of the box, so I´ve tried this work around with detecting hover over and right click. But it only works with one blueprint. If I duplicate it, the other RightButton is ignored. Deactivating “consume input” solves this, but is there another way?