2 releases
0.1.1 | Dec 2, 2023 |
---|---|
0.1.0 | Dec 2, 2023 |
#1261 in Game dev
30KB
bevy_fnplugins
Set rust functions as bevy plugins
Versions
bevy | bevy_fnplugins |
---|---|
0.12 | 0.1 |
Examples
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.fn_plugins(example_plugin)
.run();
}
fn example_plugin(app: &mut App) {
app.add_system(Startup, hello_system);
}
fn hello_system() {
println!("It works!");
}
For more examples, see the examples directory.
Dependencies
~24MB
~457K SLoC