How to implement right mouse button on actor click

  • lets say this is my actor and two child classes:

  • the interface :point_up_2: the base myActor class implements :point_down:

  • in the player controller:

  • the inheriting classes can:

image

The above is just the tip of the ice-berg, ofc. Worth exploring, there’s no turning back once you wrap you mind around this.

Don’t get me wrong. The onClick you attempt can get you far but, at some point, it may not be sufficient once more complex scenarios become awkward to handle.


Tuts, YT has plenty, not sure what to recommend to be honest:

https://www.youtube.com/results?search_query=ue+interface+comms

3 Likes