Game dev
Saved & recent

Events

Related terms: observer pattern, signals, delegates, message bus

A way for systems to react to things that happen without knowing about each other. One object announces "the player died". Any number of listeners that subscribed to that event are called.

The player code never mentions the UI, the audio or the score. New reactions can be added without touching it. Godot calls them signals. C# and Unreal call them delegates.

Further reading
Unity: Configure custom events in the Editor
publisher door opened UI audio quest tracker subscribed listeners
The door publishes one event. The interface, audio and quest systems react independently through subscriptions.

View in the full Game dev collection