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