You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, you can make a thread-local system that has access to the World and Resources like this:
fnsystem(world:&mutWorld,resources:&mutResources){// do something}
So I made a little test program...
use bevy::prelude::*;fnmain(){App::build().add_system(system.system()).run();}fnsystem(world:&mutWorld,resources:&mutResources){// do something}
Unfortunately this does not seem to compile for me. I get this error:
error[E0599]: no method named `system` found for fn item `for<'r, 's> fn(&'r mut bevy::prelude::World, &'s mut bevy::prelude::Resources) {system}` in the current scope
--> src/main.rs:22:32
|
22 | .add_system(system.system())
| ^^^^^^ method not found in `for<'r, 's> fn(&'r mut bevy::prelude::World, &'s mut bevy::prelude::Resources) {system}`
|
= note: `system` is a function, perhaps you wish to call it
I'm using rustc v1.46.0.
The text was updated successfully, but these errors were encountered:
According to the docs, you can make a thread-local system that has access to the World and Resources like this:
So I made a little test program...
Unfortunately this does not seem to compile for me. I get this error:
I'm using rustc v1.46.0.
The text was updated successfully, but these errors were encountered: