Skip to content
Discussion options

You must be logged in to vote

ok i dug a bit more into it. I think the crux of the issue is that when building the SystemSet, with_run_criteria is called:

pub fn on_exit<T>(s: T) -> SystemSet
where
T: Component + Debug + Clone + Eq + Hash,
{
Self::new().with_run_criteria(State::<T>::on_exit(s))
}

but then when i add my own with_run_criteria, it is overwritten here:

pub fn with_run_criteria<Marker>(mut self, run_criteria: impl IntoRunCriteria<Marker>) -> Self {
self.run_criteria = Some(run_criteria.into());
self

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wilk10
Comment options

@wilk10
Comment options

Answer selected by wilk10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant