-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples/app/headless.rs implies presence of non-existent feature #464
Comments
The fix for this may be to remove that feature from the example's comments and leave it as
since disabling the default features essentially makes it headless. |
Unfortunately not. If I do, then initialize:
I get:
Here, I did have this working if I initialized a subset of plugins, namely just the scheduler, but a feature or disabling defaults would certainly be nice. Thanks. |
Good point, I did not try it with [dependencies.bevy]
git = "https://github.com/bevyengine/bevy"
rev = "b9f549efaac3215e63a2d2022d58f58648adf8cb"
default-features = false use std::time::Duration;
use bevy::{app::ScheduleRunnerPlugin, prelude::*};
struct SystemTimer(Timer);
fn a(time: Res<Time>, mut timer: ResMut<SystemTimer>) {
timer.0.tick(time.delta_seconds);
if timer.0.finished {
println!("-");
timer.0.reset();
}
}
fn main() {
let wait_duration = Duration::from_secs_f64(1.0 / 60.0);
App::build()
.add_plugin(ScheduleRunnerPlugin::run_loop(wait_duration))
.add_resource(SystemTimer(Timer::from_seconds(1.0, true)))
.add_system(a.system())
.add_default_plugins()
.run();
}
|
Building with that feature doesn't work and claims it doesn't exist. Not sure if the comment should go or if the feature should materialize. :)
Thanks.
The text was updated successfully, but these errors were encountered: