Blueprint communication: Decoupling Events between sender and receiver objects

The difference between the observer pattern (event dispatcher in unreal) and the P-S pattern is that, while in the first you have a direct coupling between A and B, in the latter you don’t. So, the question is: how can A communicate with B? Well, you must have an intermediary service: a publish/subscribe service, which is basically a dictionary, mapping objects to events.

1 Like