Global Event System

anonymous_user_f684bd01
Fri, 15 Nov 2019 05:06:05 +0000
Community & Industry Discussion

So I was just watching this video: Blueprint Communications | Live Training | Unreal Engine - YouTube and this 4 minutes into the video where he is going over a simple primer it’s mentioned that UE4 has no way to globally broadcast something (like an event) and that this used to be the case back in UE2 but is no longer the case because it’s inefficient. My question is why is this considered inefficient? In a global event system, you can simply have subscribers to different events (which can easily be stored in an array) and then anytime an object publishes an event, all the subscribers to this specific event are notified. This doesn’t seem inefficient at all and it completely decouples all the objects in the game which in my view is a very good thing because you avoid spaghetti kinds of relationships between objects. In fact an entire game can be set up with this structure. Why is this considered a bad practice? Thank you!

6 posts - 3 participants