How to inject/simulate mouse clicks?



It’s not the greatest solution, and is quite tedious depending on how much you have in your HUD, but this works for me at least. I found I needed to overlay my non-btn UMG elements that had click events with a transparent btn, that way you can use the OnHovered and Unhovered events to set a boolean. Then you can simply collapse all your click logic into a function, and call that from your pawn/character’s BP.

Definitely not perfect, but while I was quite keen on trying Ramu/Nick’s plugin, it’s not updated for UE5 yet from what I saw on Ramu’s YT channel. So in the meantime this is some sort of solution I guess lol