bevy_crossbeam_event
Fire Bevy events from crossbeam channels.
Useful if you need to handle callbacks in 3rd party libraries etc. like
steamworks-rs
, or getting events out of tracing
layers.
Usage
Add add events to your app using .add_crossbeam_event::<EventType>
:
;
Fire events by using Res<CrossbeamEventSender<EventType>>
(which can be
cloned and sent into callbacks):
Handle the events just like normal Bevy events (which they are):
Bevy Version Support
The main
branch targets the latest bevy release.
bevy | bevy_crossbeam_event |
---|---|
0.15 | 0.7, main |
0.14 | 0.6 |
0.13 | 0.5 |
0.12 | 0.3 |
0.11 | 0.2 |
0.10 | 0.1 |
License
bevy_crossbeam_event
is dual-licensed under either
- MIT License (./LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Contributions
PRs welcome!