How are triggers different from events?
this post was submitted on 04 Feb 2025
15 points (100.0% liked)
Bevy
269 readers
4 users here now
A community for discussion around the bevy game engine! https://bevyengine.org/
founded 1 year ago
MODERATORS
The difference is the same as between Bevy's regular triggers and events. We aim to mirror the Bevy API and simply make it networked.
Events are buffered and pull-style, while triggers are called on commands flush and can target entities and components. Triggers were introduced in Bevy 0.14. Generally, you should use triggers for events that happen rarely and events for things that need to be processed in batches.