Skip to content

Commit b657a9b

Browse files
Add on_in_stack_update to SystemSet (#1792)
1 parent d6bc414 commit b657a9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/bevy_ecs/src/schedule/system_set.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ impl SystemSet {
4949
Self::new().with_run_criteria(State::<T>::on_inactive_update(s))
5050
}
5151

52+
pub fn on_in_stack_update<T>(s: T) -> SystemSet
53+
where
54+
T: Component + Debug + Clone + Eq + Hash,
55+
{
56+
Self::new().with_run_criteria(State::<T>::on_in_stack_update(s))
57+
}
58+
5259
pub fn on_enter<T>(s: T) -> SystemSet
5360
where
5461
T: Component + Debug + Clone + Eq + Hash,

0 commit comments

Comments
 (0)