Is it possible to manually get SystemParam
to call non system functions?
#5482
-
Hello, is it possible in bevy_ecs to get a main() {
...
gameloop {
...
schedule.run(&mut world);
// call a function manually to render after world run
render(&gl, world.get_system_param::<RenderData>()
}
}
#[derive(SystemParam)]
struct RenderData<'w, 's> {
camera: Res<'w, Camera>,
transforms : Query<'w, 's, &'static Transforms>,
}
// not a registered system
pub fn render(opengl: &Gl, render_data: Renderdata) {...} |
Beta Was this translation helpful? Give feedback.
Answered by
alice-i-cecile
Jul 29, 2022
Replies: 1 comment 4 replies
-
Does SystemState do what you need? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Bastczuak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does SystemState do what you need?