DEV Community

loading...

Discussion on: The Bevy Game Engine

Collapse
ajinkyax profile image
Ajinkya Borade

Thanks. How does it know that fn setup is a system. Do we add #[system] macro above it ?

Collapse
ethanyidong profile image
Ethan Tang Author

Actually, functions will automatically implement either ForEachSystem or IntoQuerySystem if its signature is correct. Since these traits are imported in prelude, we can run .system() on any valid function to get a system without macros.