How to store systems in a plugin #11774
-
How can I store systems in a plugin, or is it even possible to do so? struct ExamplePlugin
{
system: MysteryType
}
impl ExamplePlugin
{
fn new(system: MysteryType) -> ExamplePlugin
{
ExamplePlugin
{
system: system
}
}
}
impl Plugin for ExamplePlugin
{
fn build(&self, app: &mut App)
{
app.add_systems(Update, system);
}
} What should I put where I have |
Beta Was this translation helpful? Give feedback.
Answered by
hymm
Feb 7, 2024
Replies: 1 comment 5 replies
-
You can store it as |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
badcodecat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can store it as
NodeConfigs
and then callsystem.into_configs()
.