how did a normal function to be converted to bevy 'system'. #5181
-
with bevy 0.7 App::new()
.add_system(func1.before(func2))
... with above code snippet, 'func1' be converted into a bevy 'system' automatically. functions like 'before()', 'after()'... etc. they seem to be appended on to 'func1' some how, but don't know where from? my question is: how did that happened? any hint would be appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
tim-blackbird
Jul 3, 2022
Replies: 2 comments
-
These methods come from an extension trait that is exported from the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cqlangyi
-
big thank for your answer. just what i'm expecting. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These methods come from an extension trait that is exported from the
bevy::prelude
.