- lets say this is my actor and two child classes:
- the interface
the base
myActor
class implements
- in the player controller:
- the inheriting classes can:
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