DEV Community


Discussion on: The Bevy Game Engine

ajinkyax profile image
Ajinkya Borade

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

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.